Downloads · 30 days
2
6% of all-time downloads
shivz53/tinyllama-healthcare-jd-v1
tinyllama-healthcare-jd-v1 is a machine learning model from shivz53. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned model for creating and modifying healthcare job descriptions.
Downloads · 30 days
2
6% of all-time downloads
All-time downloads
36
Public
Parameters
1.1B
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 100%
From the Hugging Face model README
Fine-tuned model for creating and modifying healthcare job descriptions.
TinyLlama/TinyLlama-1.1B-Chat-v1.0import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "shivz53/tinyllama-healthcare-jd-v1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
device_map="auto"
)
messages = [
{"role": "system", "content": "You are a helpful assistant for creating and modifying healthcare job descriptions."},
{"role": "user", "content": "Create a JD for Pharmacy Technician in Louisville, KY, full-time."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=250, do_sample=True, temperature=0.7, top_p=0.9)
print(tokenizer.decode(out[0], skip_special_tokens=True))
train=900, val=100)1.8042619s (~43m 38s)healthcare job-description tinyllama fine-tuned