Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/model-serving/generative-inference/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,20 @@ Below is an explanation of command line arguments supported by the Hugging Face
- `--trust_remote_code`: Allow loading of models and tokenizers with custom code.
- `--tensor_input_names`: The tensor input names passed to the model for triton inference server backend.
- `--return_token_type_ids`: Return token type ids.
- `--return_offsets_mapping`: Return tokenizer offset mappings in the response outputs. This is applicable to `token_classification` tasks and can be used to align predicted tokens with character spans in the original input text.
- `--return_probabilities`: Return probabilities of predicted indexes. This is only applicable for tasks 'sequence_classification', 'token_classification' and 'fill_mask'.
- `--disable_log_requests`: Disable logging of requests.

#### Token Classification Notes

For `token_classification` tasks, the runtime can use tokenizer-provided offset mappings to align predicted tokens with the original input text.

- Offset mappings provide the start and end character positions of each token in the original string.
- This is useful for named entity recognition (NER) and other span-based token classification tasks.
- If the tokenizer does not support offset mappings, accurate character-level span alignment may not be available.

Enable this behavior using the `--return_offsets_mapping` runtime argument. It is recommended to use tokenizers that support `return_offsets_mapping=True` for accurate results.

### vLLM Specific Configuration

The Hugging Face runtime supports **all** vLLM engine arguments, allowing for complete customization of the vLLM backend. These arguments can be passed directly when deploying the runtime. For a comprehensive list of available parameters, refer to [vLLM's engine arguments documentation](https://docs.vllm.ai/en/latest/serving/engine_args.html).
Expand Down