Skip to content

Commit

Permalink
Update utils.py to add llama3 model to together_ai api
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis-yxchen authored Nov 20, 2024
1 parent c61dc78 commit 028cc65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion concordia/language_model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def language_model_setup(
elif api_type == 'pytorch_gemma':
cls = pytorch_gemma_model.PyTorchGemmaLanguageModel
elif api_type == 'together_ai':
cls = together_ai.Gemma2
if 'llama' in model_name.lower():
cls = together_ai.Llama3
else:
cls = together_ai.Gemma2
else:
raise ValueError(f'Unrecognized api type: {api_type}')

Expand Down

0 comments on commit 028cc65

Please sign in to comment.