Downloads · 30 days
2
5% of all-time downloads
kewu93/skywork-medarena-lora-v1
skywork-medarena-lora-v1 is a machine learning model from kewu93. 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 peft. The card lists the license as apache-2.0.
This is a LoRA (Low-Rank Adaptation) adapter trained on the MedArena dataset for the Skywork Reward V2 Llama 3.1 8B model.
Downloads · 30 days
2
5% of all-time downloads
All-time downloads
41
Public
Repo size
44.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors27.3 MB · 61%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) adapter trained on the MedArena dataset for the Skywork Reward V2 Llama 3.1 8B model.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from peft import PeftModel
# Load base model and tokenizer
base_model = AutoModelForSequenceClassification.from_pretrained(
"Skywork/Skywork-Reward-V2-Llama-3.1-8B",
num_labels=1,
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Skywork/Skywork-Reward-V2-Llama-3.1-8B")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "kewu93/skywork-medarena-lora-v1")
# Use for inference
inputs = tokenizer("Your text here", return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
reward_score = outputs.logits.item()
This adapter was trained using LoRA fine-tuning on medical preference data from the MedArena dataset. The model learns to score medical responses and prefer higher-quality medical advice.
adapter_config.json: LoRA adapter configurationadapter_model.safetensors: LoRA adapter weightstokenizer.json, tokenizer_config.json: Tokenizer files