Israel52B / 12B active256K contextOpen source

Explore Jamba2 Mini

Use AI21's reliability-focused open model for grounded question answering, technical manuals, research papers, and production agent stacks. Jamba2 Mini is developed by AI21 Labs. Adjust the available settings to shape the result for your task.

Model

ai21labs/AI21-Jamba2-Mini

Input

Configure your request

Passed directly as TextGenerationPipeline text_inputs. Enter raw text or a JSON chat-message array when the tokenizer has a chat template.

Documentation

Jamba2 Mini field reference

Use this reference to understand how every field in the playground changes the request sent to ai21labs/AI21-Jamba2-Mini.

text_inputs

Required

Type: Text

Provides the content the model will continue or answer. Use plain text for simple completion, or a chronological JSON array of role-and-content messages when the tokenizer supports chat formatting; the input consumes part of the model’s context window.

return_full_text

Optional

Type: Boolean

Default: On

Controls whether each result contains the original prompt followed by the completion or only the newly generated portion. Disable it when you need a clean completion without repeating the submitted input.

return_text

Optional

Type: Boolean

Default: On

Requests human-readable decoded text in the pipeline result. Disable it only when another return mode, such as token tensors, is needed for lower-level processing.

return_tensors

Optional

Type: Boolean

Default: Off

Returns numeric generated token IDs as tensors rather than ordinary readable text. This is useful for downstream model processing or custom decoding, but most applications should leave it off.

clean_up_tokenization_spaces

Optional

Type: Boolean

Default: On

Applies the tokenizer’s cleanup rules after decoding, such as removing spaces that were introduced around punctuation. Disable it when exact spacing or a lossless view of token decoding is more important than polished text.

continue_final_message

Optional

Type: Boolean

Default: Off

Treats the last chat message as an unfinished response that the model should continue. Use it to prefill the beginning or structure of an assistant answer; leave it off for a normal new reply to the conversation.

handle_long_generation

Optional

Type: String

Default: None

Values: None, hole

Controls recovery when the prompt plus requested output cannot fit inside the model’s context window. Hole mode preserves the beginning and end while removing tokens from the middle to make room, which avoids an error but may discard important context.

prefix

Optional

Type: Text

Default: None

Adds text before the supplied prompt as part of the model input. This is useful for a fixed instruction or formatting cue applied to every request, but it consumes context tokens just like normal input.

Sample output

Optional

Type: Boolean

Default: On

Chooses whether the next token is sampled from a probability distribution or selected deterministically. Enable it for more varied responses that are affected by temperature and Top P; disable it when repeatability matters or when using beam search.

Temperature

Optional

Type: Number

Default: 0.6

Range: 0–2

Adjusts how strongly the model favors its most likely next token. Lower values produce more focused and repeatable output, while higher values allow less-likely choices and increase variety; it only has an effect when sampling is enabled.

Top P

Optional

Type: Number

Default: 0.95

Range: 0–1

Limits sampling to the smallest set of likely tokens whose probabilities add up to this value. Lower settings make output more focused, while a value near 1 keeps more alternatives available; it only affects sampled generation.

Top K

Optional

Type: Integer

Default: 50

Range: 0–Unbounded

Limits sampling at each step to the specified number of most likely next tokens. Smaller values make output more conservative, while larger values preserve more variety; zero commonly means that this filter is disabled.

Maximum output tokens

Optional

Type: Integer

Default: 2048

Range: 1–262144

Caps how many tokens the model can add after the input. The model may stop earlier naturally, but a limit that is too low can cut off an answer; input tokens are not counted in this value.

Repetition penalty

Optional

Type: Number

Default: 1

Range: 0.01–2

Changes the scores of tokens that already appeared in the generated text. Values above 1 discourage repeated words and loops, 1 leaves probabilities unchanged, and values below 1 make repetition more likely.

num_return_sequences

Optional

Type: Integer

Default: 1

Range: 1–Unbounded

Requests this many separate candidate outputs for the same input. More candidates provide alternatives to compare but increase generation time and memory use, and sampled decoding is normally needed for the candidates to differ.

skip_special_tokens

Optional

Type: Boolean

Default: On

Removes internal tokens such as beginning-of-sequence, end-of-sequence, padding, and chat-control markers from readable output. Keep it enabled for user-facing text; disable it only when inspecting the model’s exact token sequence.

stop_sequence

Optional

Type: Text

Default: None

Ends generation as soon as the decoded output contains this exact sequence. The match is literal, so capitalization and spacing matter; choose a distinctive delimiter to avoid stopping on normal prose by accident.

truncation

Optional

Type: Boolean

Default: Off

Allows the tokenizer to discard tokens when an input is longer than the configured maximum or model context. Turning it off surfaces an error instead of silently losing content, which is safer when every part of the input matters.

add_special_tokens

Optional

Type: Boolean

Default: On

Allows the tokenizer to insert model-specific control tokens around the input. Keep it enabled unless you have already constructed the exact token sequence yourself, because missing or duplicated special tokens can change model behavior.

padding

Optional

Type: Boolean

Default: Off

Adds padding tokens so inputs of different lengths can be processed together in one batch. It is usually unnecessary for a single prompt but useful when submitting multiple inputs as one tensor batch.

max_length

Optional

Type: Integer

Default: None

Range: 1–Unbounded

Sets the maximum number of input tokens produced by the tokenizer before generation begins. Inputs beyond this limit require truncation, while shorter inputs may be padded depending on the padding setting; choose a value that leaves enough context space for the requested output.

tokenizer_encode_kwargs

Optional

Type: JSON object

Default: None

Provides advanced keyword arguments directly to the tokenizer’s encode operation, such as padding side or special-token handling. Values here can override related form controls, so use it when the exposed settings do not cover a tokenizer option you need.

min_p

Optional

Type: Number

Default: 0

Range: 0–1

Filters out next-token choices whose probability falls below this fraction of the most likely token’s probability. Raising the value removes unlikely choices and makes sampling more focused; zero disables the filter.

typical_p

Optional

Type: Number

Default: 1

Range: 0–1

Filters candidate tokens according to how typical their information content is for the current prediction. Lower values narrow the candidate set, while 1 disables typical sampling and leaves other sampling controls to decide.

min_new_tokens

Optional

Type: Integer

Default: 0

Range: 0–Unbounded

Prevents end-of-sequence output until at least this many new tokens have been generated. Increase it only when responses stop too early, because forcing a long minimum can add unnecessary or lower-quality text.

no_repeat_ngram_size

Optional

Type: Integer

Default: 0

Range: 0–Unbounded

Prevents the model from generating any token phrase of the specified length more than once. For example, 3 blocks repeated three-token phrases; higher restrictions can reduce loops but may make natural repetition impossible, and zero disables the rule.

num_beams

Optional

Type: Integer

Default: 1

Range: 1–Unbounded

Sets how many candidate continuations the model explores in parallel at each generation step. A value of 1 uses ordinary generation, while larger values can find a better overall sequence at the cost of additional time and memory.

use_cache

Optional

Type: Boolean

Default: On

Caches attention calculations from previously generated tokens so each new token does not recompute the entire sequence. Keep it enabled for ordinary generation; disable it mainly for debugging, memory experiments, or models whose cache implementation is incompatible.

length_penalty

Optional

Type: Number

Default: 1

Changes how beam search compares short and long candidate answers. Values above 1 give longer sequences an advantage, values below 1 favor shorter answers, and 1 applies no length preference.

early_stopping

Optional

Type: Boolean

Default: Off

Controls when beam search is allowed to finish. When enabled, generation stops after the requested number of complete candidate answers has been found; when disabled, the model may keep exploring other candidates until no promising paths remain, which can improve results but takes longer.

generate_kwargs

Optional

Type: JSON object

Default: None

Provides advanced keyword arguments directly to the model’s generation method. Use it for supported controls that are not shown separately in the form, and avoid duplicating named settings because these values may override or conflict with them.