Downloads · 30 days
0
ArvindSharma18/Phi-3-mini-4k-instruct-bnb-4bit-Clinical-Trail
Phi-3-mini-4k-instruct-bnb-4bit-Clinical-Trail is a machine learning model from ArvindSharma18. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as creativeml-openrail-m.
- This is an Experiment to generate Clinical Report Information given some of the attributes which I have trained on. Will be making a better one Soon! Stay Updated - Merged: ArvindSharma18/Phi-3-mini-4k-instruct-bnb-…
Downloads · 30 days
0
Access
Public
Updated Jul 27, 2024
Repo size
908 MB
Likes
0
Public
Click a slice to open those files.
.safetensors908 MB · 100%
From the Hugging Face model README
from unsloth import FastLanguageModel
from transformers import TextStreamer
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "lora_model", # YOUR MODEL YOU USED FOR TRAINING
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit,
)
FastLanguageModel.for_inference(model)
inputs = tokenizer(
[
"Official Title: Randomized Trial of Usual Care vs. Specialized, Phase-specific Care for Youth at Risk for Psychosis"
], return_tensors = "pt").to("cuda")
text_streamer = TextStreamer(tokenizer, skip_prompt = True)
_ = model.generate(input_ids = inputs.input_ids, attention_mask = inputs.attention_mask,
streamer = text_streamer, max_new_tokens = 2048, pad_token_id = tokenizer.eos_token_id)
This model was trained 2x faster with Unsloth and Huggingface's TRL library.