Instructions to use Chilliwiddit/Openi-llama3.1-8B-WeightedLoss-small1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Chilliwiddit/Openi-llama3.1-8B-WeightedLoss-small1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Meta-Llama-3.1-8B-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Chilliwiddit/Openi-llama3.1-8B-WeightedLoss-small1") - Transformers
How to use Chilliwiddit/Openi-llama3.1-8B-WeightedLoss-small1 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" 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("summarization", model="Chilliwiddit/Openi-llama3.1-8B-WeightedLoss-small1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Chilliwiddit/Openi-llama3.1-8B-WeightedLoss-small1", device_map="auto") - Notebooks
- Google Colab
- Kaggle