Downloads · 30 days
3
12% of all-time downloads
pravindr/llama-3.1-8b-emvlogs-finetuned
llama-3.1-8b-emvlogs-finetuned is a text generation model from pravindr. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
This model is a fine-tuned version of pravindr/llama-3.1-8b-emvlogs-finetune-dataset4 on the RahulYevle/sampletrainingdataset7 dataset.
Downloads · 30 days
3
12% of all-time downloads
All-time downloads
26
Public
Repo size
521 MB
Likes
0
Public
Click a slice to open those files.
.pt336 MB · 48%
From the Hugging Face model README
This model is a fine-tuned version of pravindr/llama-3.1-8b-emvlogs-finetune-dataset4 on the RahulYevle/sample_training_dataset_7 dataset.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"pravindr/llama-3.1-8b-emvlogs-finetune-dataset4",
torch_dtype=torch.float16,
device_map="auto"
)
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("pravindr/llama-3.1-8b-emvlogs-finetune-dataset4")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "pravindr/llama-3.1-8b-emvlogs-finetuned")
# Generate text
prompt = "Your prompt here..."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model was fine-tuned using parameter-efficient fine-tuning (PEFT) with LoRA adapters.
This model inherits the license from the base model. Please check the base model's license for usage terms.