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.
Length
2 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
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
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
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
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
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
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Response format
response_format.type
|
enum (text | json_object) | "text" | Controls whether the model returns normal text or JSON object output. | — |
Observability
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Log probabilities
logprobs
|
boolean | false | Controls whether the response includes log probabilities for the generated tokens. | — |
Metadata
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Safety mode
safety_mode
|
enum (CONTEXTUAL | STRICT) | "CONTEXTUAL" | Controls Cohere's built-in safety instructions applied to the generation. | — |
Cohere Command R7b 12 2024 API parameters in brief
Cohere Command R7b 12 2024 documents 12 API parameters, grouped by what they control:
-
Length:
max_tokensminimum 1;stop_sequences. -
Sampling:
temperaturedefaults to 0.3, minimum 0;pdefaults to 0.75, range 0.01–0.99;kdefaults to 0, range 0–500;frequency_penaltydefaults to 0, range 0–1;presence_penaltydefaults to 0, range 0–1;seed. -
Tools:
tool_choiceaccepts "REQUIRED", "NONE". -
Output:
response_format.typedefaults to "text", accepts "text", "json_object". -
Observability:
logprobsdefaults to false. -
Metadata:
safety_modedefaults to "CONTEXTUAL", accepts "CONTEXTUAL", "STRICT".
Frequently asked questions
- How many parameters does Cohere Command R7b 12 2024 accept?
- Cohere Command R7b 12 2024 accepts 12 API parameters: max_tokens, stop_sequences, temperature, p, k, frequency_penalty, and more.
- What is the default temperature for Cohere Command R7b 12 2024?
- The default temperature for Cohere Command R7b 12 2024 is 0.3, with a minimum of 0.