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
| base_model: unsloth/Meta-Llama-3.1-8B-bnb-4bit | |
| library_name: peft | |
| tags: | |
| - base_model:adapter:unsloth/Meta-Llama-3.1-8B-bnb-4bit | |
| - lora | |
| - transformers | |
| language: | |
| - en | |
| metrics: | |
| - bleu | |
| - bertscore | |
| - rouge | |
| pipeline_tag: summarization | |
| # Model Card for Model ID | |
| Basically used to summarize text from the Open-i dataset | |
| ## Training Details | |
| ### Training Data | |
| I used the Open-i dataset | |
| #### Training Hyperparameters | |
| - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision --> | |
| - 16 Mixed Precision | |
| - LR of 0.0-1 | |
| - 5 Epochs | |
| - lambda medical weight of 0.05 and lambda negation weight of 0.03 | |
| - Used 2nd iteration of summary medical concepts file | |