Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Models 101 - Font change associated with <code> elements #24

Open
ashandoak opened this issue Nov 1, 2023 · 1 comment
Open

Comments

@ashandoak
Copy link

Sub-section title

WHAT IS FREQUENCY?

Please describe your issue

The

text in the WHAT IS FREQUENCY? section is inheriting a different font-family from the rest of the

-wrapped text in the document. Each of the text sections related to a figure has additional nested

elements, one of which is passing CSS classes to the text, including the ff-montserrat class, which is overriding the document font-family.

Perhaps this is intentional, but I don't read it as such given the rest of the formatting. If the the font is intended to be different, perhaps some additional

or
formatting is warranted.

This also applies to the sections WHAT IS TEMPERATURE? and WHAT IS 'TOP_P' SAMPLING?

Describe the solution you'd like to see

All

text in the document should have a consistent font style.

@pdehaan
Copy link

pdehaan commented Nov 2, 2023

@heaversm Not sure if this is related the njk macros work.

#### What is frequency?
<code>
{% set slide = { "alt": "Frequency Parameter Visualization","title": "Frequency", "description": "<p>Frequency is a parameter used in language models to control how often a token can be repeated in the generated output. It works by penalizing the model for repeating tokens that have already been used, preventing the model from generating repetitive or nonsensical text. The higher this is set, the more that repetition of tokens present in the context will be penalized in suggestions.</p>", "image": "/img/ai/carousels/parameters/llm-05-frequency.jpg"}%}
{% from "partials/image-cards/image-card.html" import imageCard %}
{% set orientation = "image-single" %}
{{ imageCard(slide, orientation,false) }}
</code>

Not sure why it needs the <code> wrapper or if <div> or something more inert would also do... whatever is doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants