Downloads · 30 days
4
1% of all-time downloads
Henit007/Vivekanandao1_finetuned
Vivekanandao1_finetuned is a machine learning model from Henit007. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a fine-tuned version of the modelname base model using QLoRA (Quantized Low-Rank Adaptation) for efficient and memory-friendly training. Fine-tuning was performed using the Hugging Face trl library’s SFT…
Downloads · 30 days
4
1% of all-time downloads
All-time downloads
325
Public
Repo size
81.9 GB
Likes
0
Public
Click a slice to open those files.
.pt34.3 GB · 62%
From the Hugging Face model README
This model is a fine-tuned version of the model_name base model using QLoRA (Quantized Low-Rank Adaptation) for efficient and memory-friendly training. Fine-tuning was performed using the Hugging Face trl library’s SFTTrainer and peft (LoRA).
model_namefrom transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Henit007/Vivekanandao1_finetuned")
model = AutoModelForCausalLM.from_pretrained("Henit007/Vivekanandao1_finetuned", device_map="auto")
input_text = "Explain climate change in simple terms."
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))