Downloads · 30 days
4
3% of all-time downloads
Ananya8154/Llama-2-7b-Instruction-tuned
Llama-2-7b-Instruction-tuned is a text generation model from Ananya8154. Use it when you need the model to write or continue text. The card lists the license as mit.
This Hugging Face model card describes a fine-tuned version of the LLAMAv2 7B model specifically for processing medical transcript instructions.
Downloads · 30 days
4
3% of all-time downloads
All-time downloads
158
Public
Parameters
6.9B
4.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.4 GB · 100%
How the weights are stored.
U86.7B · 96%
From the Hugging Face model README
This Hugging Face model card describes a fine-tuned version of the LLAMAv2 7B model specifically for processing medical transcript instructions.
This model is designed to understand and process medical transcript instructions. Potential use cases include:
Installation:
pip install transformers
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "Ananya8154/llama-v2-7b-medical-instructions"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Example usage: Summarize a medical transcript instruction
instruction = "Get key medical terms from the prescription"
context = "" # insert medical transcription here
prompt = """You are a helpful assistant, use context provided and answer the given instruction: \nInstruction: {instruction} \nContext: {context}"""
instruction_text = prompt
input_ids = tokenizer(instruction_text, return_tensors="pt")
output = model.generate(**input_ids)
decoded_text = tokenizer.batch_decode(output, skip_special_tokens=True)[0]
print(decoded_text) # Output: Administer medication X every 12 hours. (Summarized)
Limitations & Biases Limitations:
This model is fine-tuned on a specific dataset of medical transcript instructions. It may not perform well on other types of medical text or general language tasks. The model may not be able to handle complex or nuanced medical instructions.
Biases:
The performance of this model may be biased by the data it was trained on. It's crucial to be aware of this limitation and ensure the training data is diverse and representative of the intended use case.
further info is being updated..