ModelSettings
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Schema schemez.schema Base class for configuration models. |
â‹” Inheritance diagram¶
graph TD
666099940["configs.ModelSettings"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
330168112 --> 666099940
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: Schema
Settings to configure an LLM.
Source code in src/llmling_models_config/configs.py
1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 | |
frequency_penalty
class-attribute
instance-attribute
¶
frequency_penalty: float | None = Field(
default=None, ge=-2.0, le=2.0, examples=[0.0, 0.5, 1.0], title="Frequency penalty"
)
Penalize new tokens based on their existing frequency in the text so far.
logit_bias
class-attribute
instance-attribute
¶
logit_bias: dict[str, int] | None = Field(
default=None, title="Logit bias", examples=[{"5678": -100}, {"1234": 100}]
)
Modify the likelihood of specified tokens appearing in the completion.
max_output_tokens
class-attribute
instance-attribute
¶
max_output_tokens: int | None = Field(
default=None, examples=[1024, 2048, 4096], title="Maximum output tokens"
)
The maximum number of tokens to generate.
parallel_tool_calls
class-attribute
instance-attribute
¶
Whether to allow parallel tool calls.
presence_penalty
class-attribute
instance-attribute
¶
presence_penalty: float | None = Field(
default=None, ge=-2.0, le=2.0, examples=[0.0, 0.5, 1.0], title="Presence penalty"
)
Penalize new tokens based on whether they have appeared in the text so far.
seed
class-attribute
instance-attribute
¶
The random seed to use for the model.
temperature
class-attribute
instance-attribute
¶
temperature: float | None = Field(
default=None, ge=0.0, le=2.0, examples=[0.7, 1.0, 1.5], title="Temperature"
)
Amount of randomness in the response (0.0 - 2.0).
timeout
class-attribute
instance-attribute
¶
timeout: float | None = Field(
default=None, ge=0.0, examples=[30.0, 60.0, 120.0], title="Request timeout"
)
Override the client-level default timeout for a request, in seconds.
top_p
class-attribute
instance-attribute
¶
top_p: float | None = Field(
default=None, ge=0.0, le=1.0, examples=[0.9, 0.95, 1.0], title="Top-p (nucleus sampling)"
)
An alternative to sampling with temperature, called nucleus sampling.