How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "iamaber/mistral-7b-pubmedqa-adapter" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "iamaber/mistral-7b-pubmedqa-adapter",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "iamaber/mistral-7b-pubmedqa-adapter" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "iamaber/mistral-7b-pubmedqa-adapter",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

pubmedqa-loraplus Adapter Model

Overview

This adapter artifact fine-tunes mistralai/Mistral-7B-Instruct-v0.3 on qiaojin/PubMedQA / pqa_labeled using LoRA+.

Training Setup

Field Value
Train examples 900
Eval examples 100
Epochs 3
Train batch size 4
Eval batch size 4
Gradient accumulation 4
Learning rate 5e-05
Best eval loss 0.5188
Latest eval loss 0.5188
Latest train loss 0.4810
Train runtime (s) 566.5676
Global step 171

Evaluation Summary

Metric Value
PubMedQA accuracy 0.4500
PubMedQA macro F1 0.2069
PubMedQA weighted F1 0.2793
PubMedQA samples 100
Medical MMLU accuracy 0.1600
Medical MMLU samples 50

Medical MMLU Subject Breakdown

Subject Accuracy Correct Total
anatomy 0.1600 8 50
clinical_knowledge 0.0000 0 0
college_medicine 0.0000 0 0
medical_genetics 0.0000 0 0
professional_medicine 0.0000 0 0
virology 0.0000 0 0

PubMedQA Confusion Matrix

Actual \ Predicted yes no maybe
yes 45 0 0
no 40 0 0
maybe 15 0 0
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for iamaber/mistral-7b-pubmedqa-adapter

Adapter
(838)
this model

Dataset used to train iamaber/mistral-7b-pubmedqa-adapter