Downloads · 30 days
22
4% of all-time downloads
adriata/med_mistral
med_mistral is a text generation model from adriata. 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.
Model Mistral-7B-Instruct-v0.2 finetuned with QLoRA on multiple medical datasets.
Downloads · 30 days
22
4% of all-time downloads
All-time downloads
541
Public
Parameters
7.2B
29 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors29 GB · 100%
From the Hugging Face model README
Model Mistral-7B-Instruct-v0.2 finetuned with QLoRA on multiple medical datasets.
4-bit version: med_mistral_4bit
The model is finetuned on medical data and is intended only for research. It should not be used as a substitute for professional medical advice, diagnosis, or treatment.
The model's predictions are based on the information available in the finetuned medical dataset. It may not generalize well to all medical conditions or diverse patient populations.
Sensitivity to variations in input data and potential biases present in the training data may impact the model's performance.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
# !pip install -q transformers accelerate bitsandbytes
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("adriata/med_mistral")
model = AutoModelForCausalLM.from_pretrained("adriata/med_mistral")
prompt_template = """<s>[INST] {prompt} [/INST]"""
prompt = "What is influenza?"
model_inputs = tokenizer.encode(prompt_template.format(prompt=prompt),
return_tensors="pt").to("cuda")
generated_ids = model.generate(model_inputs, max_new_tokens=512, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])
~13h - 20k examples x 1 epoch
GPU: OVH - 1 × NVIDIA TESLA V100S (32 GiB RAM)
Training data included 20k examples randomly selected from datasets: