Skip to content

Commit

Permalink
Updating the doc (we keep the list actually).
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Oct 14, 2024
1 parent 3d5f107 commit 406725e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2094,4 +2094,4 @@
"description": "Hugging Face Text Generation Inference API"
}
]
}
}
16 changes: 15 additions & 1 deletion docs/source/supported_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,18 @@ Text Generation Inference enables serving optimized models. The following sectio
- [Idefics](https://huggingface.co/HuggingFaceM4/idefics-9b) (Multimodal)


If the above list lacks the model you would like to serve, depending on the model's pipeline type, you can try to initialize and serve the model anyways to see how well it performs, but performance isn't guaranteed for non-optimized models. Read more about [Non-core Model Serving](../basic_tutorials/non_core_models).

If the above list lacks the model you would like to serve, depending on the model's pipeline type, you can try to initialize and serve the model anyways to see how well it performs, but performance isn't guaranteed for non-optimized models:

```python
# for causal LMs/text-generation models
AutoModelForCausalLM.from_pretrained(<model>, device_map="auto")`
# or, for text-to-text generation models
AutoModelForSeq2SeqLM.from_pretrained(<model>, device_map="auto")
```

If you wish to serve a supported model that already exists on a local folder, just point to the local folder.

```bash
text-generation-launcher --model-id <PATH-TO-LOCAL-BLOOM>
```
2 changes: 2 additions & 0 deletions update_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
Text Generation Inference enables serving optimized models. The following sections list which models (VLMs & LLMs) are supported.
SUPPORTED_MODELS
If the above list lacks the model you would like to serve, depending on the model's pipeline type, you can try to initialize and serve the model anyways to see how well it performs, but performance isn't guaranteed for non-optimized models:
Expand Down

0 comments on commit 406725e

Please sign in to comment.