Instructions to use arnastofnun/Llama-3.1-8B-wmt26-AMI-en-is-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use arnastofnun/Llama-3.1-8B-wmt26-AMI-en-is-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("./merged_llama_8b_icelandic") model = PeftModel.from_pretrained(base_model, "arnastofnun/Llama-3.1-8B-wmt26-AMI-en-is-lora") - Transformers
How to use arnastofnun/Llama-3.1-8B-wmt26-AMI-en-is-lora with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="arnastofnun/Llama-3.1-8B-wmt26-AMI-en-is-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("arnastofnun/Llama-3.1-8B-wmt26-AMI-en-is-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!