Downloads · 30 days
9
36% of all-time downloads
comp5331poi/llama3-nyc-base
llama3-nyc-base is a text generation model from comp5331poi. Use it when you need the model to write or continue text. It is set up for peft.
This model is a fine-tuned version of unsloth/llama-3-8b using LoRA (Low-Rank Adaptation) and quantization techniques.
Downloads · 30 days
9
36% of all-time downloads
All-time downloads
25
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This model is a fine-tuned version of unsloth/llama-3-8b using LoRA (Low-Rank Adaptation) and quantization techniques.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3-8b")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "comp5331poi/llama3-nyc-base")
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("unsloth/llama-3-8b")
# Generate text
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_length=2048)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))