Downloads · 30 days
60
14% of all-time downloads
elixpo/LlamaMedicine
LlamaMedicine is a machine learning model from elixpo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: Elixpo - License: apache-2.0 - Finetuned from model : unsloth/llama-3.2-1b-instruct-bnb-4bit
Downloads · 30 days
60
14% of all-time downloads
All-time downloads
440
Public
Repo size
1.3 GB
Likes
3
Public
Click a slice to open those files.
.gguf1.3 GB · 100%
From the Hugging Face model README
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
MediTalk is a medical assistant model designed to assist users by providing general health-related information based on research and expert knowledge. Trained using LLAMA 3.1, this model responds to queries with empathy, clarity, and professionalism, while also ensuring sensitive or inappropriate questions are addressed with polite negations. The model has been fine-tuned using the lavita/ChatDoctor-HealthCareMagic-100k dataset from Hugging Face, making it suitable for medical-related works.
The model is available for use on Ollama and Hugging Face, and can be interacted with similarly to GPT models.
ollama run Elixpo/LlamaMedicine
# run before testing this
# pip install unsloth bitsandbytes transformers
from unsloth import FastLanguageModel
from transformers import AutoTokenizer
import torch
# Load the quantized model from Hugging Face
model_name = "Elixpo/llamaMED"
model, _ = FastLanguageModel.from_pretrained(model_name)
# Prepare the model for inference
model = FastLanguageModel.for_inference(model)
# Determine the device (GPU or CPU)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# Move the model to the appropriate device
model = model.to(device)
# Load the tokenizer from Hugging Face
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Test the model
input_text = "What are the symptoms of diabetes?"
inputs = tokenizer(input_text, return_tensors="pt")
# Move the input tensors to the same device as the model
inputs = {key: value.to(device) for key, value in inputs.items()}
# Generate output using the model
outputs = model.generate(inputs['input_ids'], max_length=100)
# Decode the output
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
lavita/ChatDoctor-HealthCareMagic-100k dataset from Hugging Face.This should provide a comprehensive overview of your model and its capabilities!
Modelfile to adjust the assistant’s behavior.