Downloads · 30 days
0
Mr-FineTuner/noSynthetic-llama_3epoch_02dropout_lora
noSynthetic-llama_3epoch_02dropout_lora is a machine learning model from Mr-FineTuner. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the LoRA adapters for a fine-tuned version of unsloth/llama-3-8b-instruct-bnb-4bit for CEFR-level sentence generation. The base model is available at Mr-FineTuner/llama-3-8b-instruct-base.
Downloads · 30 days
0
Access
Public
Updated May 13, 2025
Repo size
168 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 100%
From the Hugging Face model README
This repository contains the LoRA adapters for a fine-tuned version of unsloth/llama-3-8b-instruct-bnb-4bit for CEFR-level sentence generation. The base model is available at Mr-FineTuner/llama-3-8b-instruct-base.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Mr-FineTuner/llama-3-8b-instruct-base",
quantization_config=BitsAndBytesConfig(load_in_4bit=True),
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Mr-FineTuner/llama-3-8b-instruct-base")
# Load LoRA adapters
model = PeftModel.from_pretrained(base_model, "Mr-FineTuner/noSynthetic-llama_3epoch_02dropout_lora")
# Example inference
prompt = "<|user|>Generate a CEFR B1 level sentence.<|end|>"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_length=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Uploaded using huggingface_hub. Saved with safetensors for efficiency.