Downloads · 30 days
122
0% of all-time downloads
chaoyi-wu/MedLLaMA_13B
MedLLaMA_13B is a text generation model from chaoyi-wu. 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.
This repo contains MedLLaMA13B, which is LLaMA-13b finetuned with some Medical Corpus.
Downloads · 30 days
122
0% of all-time downloads
All-time downloads
65.6K
Public
Repo size
104 GB
Likes
39
Public
Click a slice to open those files.
.bin52.1 GB · 100%
From the Hugging Face model README
This repo contains MedLLaMA_13B, which is LLaMA-13b finetuned with some Medical Corpus.
The model was trained with the following hyperparameters:
The model can be loaded as follows:
import transformers
import torch
tokenizer = transformers.LlamaTokenizer.from_pretrained('chaoyi-wu/MedLLaMA_13B')
model = transformers.LlamaForCausalLM.from_pretrained('chaoyi-wu/MedLLaMA_13B')
sentence = 'Hello, doctor'
batch = tokenizer(
sentence,
return_tensors="pt",
add_special_tokens=False
)
with torch.no_grad():
generated = model.generate(inputs = batch["input_ids"], max_length=200, do_sample=True, top_k=50)
print('model predict: ',tokenizer.decode(generated[0]))