Run this model with HF Jobs
Run chaoyi-wu/MedLLaMA_13B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/chaoyi-wu/MedLLaMA_13B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/chaoyi-wu/MedLLaMA_13B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/chaoyi-wu/MedLLaMA_13B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/chaoyi-wu/MedLLaMA_13B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use chaoyi-wu/MedLLaMA_13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chaoyi-wu/MedLLaMA_13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chaoyi-wu/MedLLaMA_13B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("chaoyi-wu/MedLLaMA_13B") model = AutoModelForCausalLM.from_pretrained("chaoyi-wu/MedLLaMA_13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use chaoyi-wu/MedLLaMA_13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chaoyi-wu/MedLLaMA_13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chaoyi-wu/MedLLaMA_13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/chaoyi-wu/MedLLaMA_13B
- SGLang
How to use chaoyi-wu/MedLLaMA_13B 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 "chaoyi-wu/MedLLaMA_13B" \ --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": "chaoyi-wu/MedLLaMA_13B", "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 "chaoyi-wu/MedLLaMA_13B" \ --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": "chaoyi-wu/MedLLaMA_13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use chaoyi-wu/MedLLaMA_13B with Docker Model Runner:
docker model run hf.co/chaoyi-wu/MedLLaMA_13B
Upload 6 files
Browse filesFiles changed (6)
123version https://git-lfs.github.com/spec/v1oid sha256:3360031c826f3304a9bcb5a83e5c242907a9c7af2575d89c3fbd5970040ef6d7size 9956543947123version https://git-lfs.github.com/spec/v1oid sha256:1c34d6873ea5e18c71e4a24a9d4f32b41d5a45ac42dc02d877da6e6fe4d8fe1bsize 9940856577123version https://git-lfs.github.com/spec/v1oid sha256:39735a1de94925327cf6ce00d17f54b45c7e735de255e581d8a55a827da8369dsize 9940857007123version https://git-lfs.github.com/spec/v1oid sha256:14b053924d71454dab2053da213c5a62f319f778ee221fe6ef32e0a111c46fbasize 9867415353123version https://git-lfs.github.com/spec/v1oid sha256:d2a7b00bd8b43249d79ec7bfc88ece9697fe2c83e2010013fd77b6e3ede3d7besize 9867457089123version https://git-lfs.github.com/spec/v1oid sha256:ad8d847b686fae79a9684af26a6a14c56ac407948d91818c1c35b332149f0045size 2490476271pytorch_model-00001-of-00006.binAdded+3
pytorch_model-00002-of-00006.binAdded+3
pytorch_model-00003-of-00006.binAdded+3
pytorch_model-00004-of-00006.binAdded+3
pytorch_model-00005-of-00006.binAdded+3
pytorch_model-00006-of-00006.binAdded+3