Cohere
12 params
Cohere Command R7b 12 2024 parameters
These are the parameters modelparams.dev tracks for Cohere Command R7b 12 2024. Each row gives the type, default, valid range or values, and the conditions that gate it. It's the same data the JSON API serves.
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
| Length · 2 params | ||||
|
Max tokens
max_tokens
|
integer (1…+∞) | — | Maximum number of output tokens the model may generate. | — |
|
Stop sequences
stop_sequences
|
string | — | Stops generation when one of these sequences is detected; up to five are allowed. | — |
| Sampling · 6 params | ||||
|
Temperature
temperature
|
number (0…+∞ step 0.1) | 0.3 | Controls randomness. Lower values make outputs more focused; higher values make them more varied. | — |
|
Top P
p
|
number (0.01…0.99 step 0.01) | 0.75 | Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. | — |
|
Top K
k
|
integer (0…500) | 0 | Limits sampling to the K most likely tokens; 0 disables top-k sampling. | — |
|
Frequency penalty
frequency_penalty
|
number (0…1 step 0.1) | 0 | Penalizes tokens proportional to how often they have already appeared to reduce repetition. | — |
|
Presence penalty
presence_penalty
|
number (0…1 step 0.1) | 0 | Penalizes tokens that have already appeared to encourage a wider variety of content. | — |
|
Seed
seed
|
integer | — | Seed used for best-effort deterministic sampling when reproducible outputs are desired. | — |
| Tools · 1 param | ||||
|
Tool choice
tool_choice
|
enum (REQUIRED | NONE) | — | Forces the model to either call a tool or skip tool calls for this request. | — |
| Output · 1 param | ||||
|
Response format
response_format.type
|
enum (text | json_object) | "text" | Controls whether the model returns normal text or JSON object output. | — |
| Observability · 1 param | ||||
|
Log probabilities
logprobs
|
boolean | false | Controls whether the response includes log probabilities for the generated tokens. | — |
| Metadata · 1 param | ||||
|
Safety mode
safety_mode
|
enum (CONTEXTUAL | STRICT) | "CONTEXTUAL" | Controls Cohere's built-in safety instructions applied to the generation. | — |