Downloads · 30 days
6.1K
5% of all-time downloads
StanfordAIMI/RadLLaMA-7b
RadLLaMA-7b is a text generation model from StanfordAIMI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
<div align="center" <h1 AIMI FMs: A Collection of Foundation Models in Radiology </h1 </div
Downloads · 30 days
6.1K
5% of all-time downloads
All-time downloads
132K
Public
Parameters
6.7B
27 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors27 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer
from transformers import AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("StanfordAIMI/RadLLaMA-7b", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("StanfordAIMI/RadLLaMA-7b")
prompt = "Hi"
conv = [{"from": "human", "value": prompt}]
input_ids = tokenizer.apply_chat_template(conv, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_ids)
response = tokenizer.decode(outputs[0])
print(response)
@article{aimifms-2024,
title={},
author={},
journal={arXiv preprint arXiv:xxxx.xxxxx},
url={https://arxiv.org/abs/xxxx.xxxxx},
year={2024}
}