Downloads · 30 days
12
9% of all-time downloads
nalrunyan/llama3-8b-gptq-4bit
llama3-8b-gptq-4bit is a machine learning model from nalrunyan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.
This is a 4-bit GPTQ quantized version of meta-llama/Meta-Llama-3-8B-Instruct.
Downloads · 30 days
12
9% of all-time downloads
All-time downloads
139
Public
Parameters
8B
23 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors11.5 GB · 100%
How the weights are stored.
I327B · 87%
From the Hugging Face model README
This is a 4-bit GPTQ quantized version of meta-llama/Meta-Llama-3-8B-Instruct.
This model has been quantized using medical-domain calibration for optimal performance on clinical and healthcare applications.
⚠️ Validation Required: All medical outputs should be reviewed by qualified healthcare professionals. This model is a tool to assist, not replace, medical judgment.
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("nalrunyan/llama3-8b-gptq-4bit")
model = AutoModelForCausalLM.from_pretrained("nalrunyan/llama3-8b-gptq-4bit", device_map="auto")
prompt = "Explain the diagnosis:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model was quantized using GPTQ with:
Created on Kaggle with 2x T4 GPUs.