Instructions to use rbryant19/opscribe-captioner-ortho-tool-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rbryant19/opscribe-captioner-ortho-tool-v1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-VL-72B-Instruct") model = PeftModel.from_pretrained(base_model, "rbryant19/opscribe-captioner-ortho-tool-v1") - Transformers
How to use rbryant19/opscribe-captioner-ortho-tool-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rbryant19/opscribe-captioner-ortho-tool-v1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rbryant19/opscribe-captioner-ortho-tool-v1", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rbryant19/opscribe-captioner-ortho-tool-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rbryant19/opscribe-captioner-ortho-tool-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rbryant19/opscribe-captioner-ortho-tool-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rbryant19/opscribe-captioner-ortho-tool-v1
- SGLang
How to use rbryant19/opscribe-captioner-ortho-tool-v1 with 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 "rbryant19/opscribe-captioner-ortho-tool-v1" \ --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": "rbryant19/opscribe-captioner-ortho-tool-v1", "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 "rbryant19/opscribe-captioner-ortho-tool-v1" \ --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": "rbryant19/opscribe-captioner-ortho-tool-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rbryant19/opscribe-captioner-ortho-tool-v1 with Docker Model Runner:
docker model run hf.co/rbryant19/opscribe-captioner-ortho-tool-v1
opscribe-captioner-ortho-tool-v1
SVD task arithmetic merge for Qwen2.5-VL-72B-Instruct surgical frame captioning.
| Adapter | Weight | Rank | Data |
|---|---|---|---|
| opscribe-captioner-ortho-v1 | 0.70 | 32 | OpenSurgery_Ortho — 2,417 records, 5-frame windows, surgeon narration, val_loss 0.776 |
| opscribe-tool-recognition-adapter | 0.30 | 64 | 923 frames, exhaustive instrument descriptions |
Merged to rank 32 (alpha=32, scale=1.0) via efficient thin-SVD task arithmetic.
- Downloads last month
- -
Model tree for rbryant19/opscribe-captioner-ortho-tool-v1
Base model
Qwen/Qwen2.5-VL-72B-Instruct