Instructions to use microsoft/Magma-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Magma-8B with Transformers:
# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("microsoft/Magma-8B", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
generation_args in the example
#10
by Ray2333 - opened
Awesome work! Congratulations! I noticed that the definition of generation_args is missing in the example.
with torch.inference_mode():
generate_ids = model.generate(**inputs, **generation_args)
Ray2333 changed discussion status to closed