Downloads · 30 days
0
vyshnaviprasad/diabetic_modelf
diabetic_modelf is a text generation model from vyshnaviprasad. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: vyshnaviprasad - License: apache-2.0 - Finetuned from model: unsloth/meta-llama-3.1-8b-instruct-bnb-4bit
Downloads · 30 days
0
Access
Public
Updated Oct 17, 2025
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This LLaMA model was trained 2x faster with Unsloth and Hugging Face's TRL library.
This is a LoRA adapter, not a full standalone model.
pipeline_tag and base_model allow it to work directly.from unsloth import FastLanguageModel
base_model = "unsloth/meta-llama-3.1-8b-instruct-bnb-4bit"
adapter_model = "vyshnaviprasad/diabetic_modelf"
# Load base model with LoRA adapter
model, tokenizer = FastLanguageModel.from_pretrained(
model_name=base_model,
adapter_name=adapter_model,
load_in_4bit=True
)
FastLanguageModel.for_inference(model)
# Generate text
prompt = "Explain hypertension in simple words to a patient."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=1000)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))