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
File size: 133 Bytes
bb5aaee | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
size 17209920
|