Downloads · 30 days
80
12% of all-time downloads
Ellbendls/llama-3.2-3b-chat-doctor
llama-3.2-3b-chat-doctor is a text generation model from Ellbendls. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
Llama-3.2-3B-Chat-Doctor is a specialized medical question-answering model based on the Llama 3.2 3B architecture. This model has been fine-tuned specifically for providing accurate and helpful responses to medical-re…
Downloads · 30 days
80
12% of all-time downloads
All-time downloads
646
Public
Parameters
3.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.1 GB · 56%
From the Hugging Face model README
Llama-3.2-3B-Chat-Doctor is a specialized medical question-answering model based on the Llama 3.2 3B architecture. This model has been fine-tuned specifically for providing accurate and helpful responses to medical-related queries.
This model can be used for:
⚠️ CRITICAL WARNINGS:
The model SHOULD NOT be used for:
[Provide details about the fine-tuning process, if available]
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Ellbendls/llama-3.2-3b-chat-doctor"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example usage
input_text = "I had a surgery which ended up with some failures. What can I do to fix it?"
# Prepare inputs with explicit padding and attention mask
inputs = tokenizer(input_text, return_tensors="pt", padding=True, truncation=True)
# Generate response with more explicit parameters
outputs = model.generate(
input_ids=inputs['input_ids'],
attention_mask=inputs['attention_mask'],
max_new_tokens=150, # Specify max new tokens to generate
do_sample=True, # Enable sampling for more diverse responses
temperature=0.7, # Control randomness of output
top_p=0.9, # Nucleus sampling to maintain quality
num_return_sequences=1 # Number of generated sequences
)
# Decode the generated response
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model is developed with the intent to provide helpful, accurate, and responsible medical information. Users are encouraged to: