Skip to content

Commit

Permalink
Fixing docs + causal_lm batch_class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Jul 4, 2024
1 parent 26c8d2f commit a1a5ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/supported_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Text Generation Inference enables serving optimized models on specific hardware
- [Llama](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct)
- [Phi 3](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct)
- [Gemma](https://huggingface.co/google/gemma-7b)
- [PaliGemma](https://huggingface.co/google/paligemma-3b-pt-224)
- [Gemma2](https://huggingface.co/google/gemma2-9b)
- [Cohere](https://huggingface.co/CohereForAI/c4ai-command-r-plus)
- [Dbrx](https://huggingface.co/databricks/dbrx-instruct)
Expand Down
2 changes: 1 addition & 1 deletion server/text_generation_server/models/causal_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def fallback(

@property
def batch_type(self) -> Type[CausalLMBatch]:
return self.batch
return self.batch_class

def forward(
self, input_ids, attention_mask, position_ids, past_key_values: Optional = None
Expand Down

0 comments on commit a1a5ff6

Please sign in to comment.