Instructions to use SNOWTEAM/DoctorLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SNOWTEAM/DoctorLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SNOWTEAM/DoctorLLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SNOWTEAM/DoctorLLM") model = AutoModelForCausalLM.from_pretrained("SNOWTEAM/DoctorLLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SNOWTEAM/DoctorLLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SNOWTEAM/DoctorLLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SNOWTEAM/DoctorLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SNOWTEAM/DoctorLLM
- SGLang
How to use SNOWTEAM/DoctorLLM 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 "SNOWTEAM/DoctorLLM" \ --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": "SNOWTEAM/DoctorLLM", "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 "SNOWTEAM/DoctorLLM" \ --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": "SNOWTEAM/DoctorLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SNOWTEAM/DoctorLLM with Docker Model Runner:
docker model run hf.co/SNOWTEAM/DoctorLLM
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.a99cc4b
-
Update README.md
Verified signatureee86140 -
Delete trainer_state.json
Verified signature5190479 -
Update README.md
Verified signature6a89fc3 -
Update README.md
Verified signatureef888a9 -
Update README.md
Verified signature3426d0e -
Update README.md
Verified signature111c2a4 -
Update README.md
Verified signature38813f9 -
Update README.md
Verified signature635b8d6
-
Update README.md
Verified signature49d4439 -
Create README.md
Verified signaturefbdfe34
-
Upload pytorch_model-00010-of-00019.bin with huggingface_hub
Verified signature928d86e -
Upload pytorch_model-00008-of-00019.bin with huggingface_hub
Verified signature3fe7d26 -
Upload pytorch_model-00017-of-00019.bin with huggingface_hub
Verified signature821ec90 -
Upload config.json with huggingface_hub
Verified signaturef9e98a0 -
Upload pytorch_model-00001-of-00019.bin with huggingface_hub
Verified signaturee8b03a0 -
Upload pytorch_model-00011-of-00019.bin with huggingface_hub
Verified signatureeafd8a5 -
Upload pytorch_model-00019-of-00019.bin with huggingface_hub
Verified signature408fbe3 -
Upload pytorch_model-00007-of-00019.bin with huggingface_hub
Verified signatured334cb2 -
Upload generation_config.json with huggingface_hub
Verified signature3d61965 -
Upload pytorch_model-00005-of-00019.bin with huggingface_hub
Verified signaturebff3896 -
Upload pytorch_model-00014-of-00019.bin with huggingface_hub
Verified signature98e7f09 -
Upload trainer_state.json with huggingface_hub
Verified signature95d111f -
Upload pytorch_model.bin.index.json with huggingface_hub
Verified signature7fe5c2f -
Upload pytorch_model-00009-of-00019.bin with huggingface_hub
Verified signaturea04f640 -
Upload pytorch_model-00016-of-00019.bin with huggingface_hub
Verified signature909ea99 -
Upload pytorch_model-00003-of-00019.bin with huggingface_hub
Verified signature83da0cd -
Upload pytorch_model-00012-of-00019.bin with huggingface_hub
Verified signature932fdfa -
Upload pytorch_model-00004-of-00019.bin with huggingface_hub
Verified signature1b3813e -
Upload pytorch_model-00018-of-00019.bin with huggingface_hub
Verified signature6c73ef2 -
Upload pytorch_model-00006-of-00019.bin with huggingface_hub
Verified signature72f4f78 -
Upload pytorch_model-00015-of-00019.bin with huggingface_hub
Verified signature6d8457e -
Upload pytorch_model-00013-of-00019.bin with huggingface_hub
Verified signature97f3b25 -
Upload pytorch_model-00002-of-00019.bin with huggingface_hub
Verified signature1030028 -
initial commit
Verified signaturee24be4f