Instructions to use SNOWTEAM/MedicoLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SNOWTEAM/MedicoLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SNOWTEAM/MedicoLLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SNOWTEAM/MedicoLLM") model = AutoModelForCausalLM.from_pretrained("SNOWTEAM/MedicoLLM", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SNOWTEAM/MedicoLLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SNOWTEAM/MedicoLLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SNOWTEAM/MedicoLLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SNOWTEAM/MedicoLLM
- SGLang
How to use SNOWTEAM/MedicoLLM 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/MedicoLLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SNOWTEAM/MedicoLLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/MedicoLLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SNOWTEAM/MedicoLLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SNOWTEAM/MedicoLLM with Docker Model Runner:
docker model run hf.co/SNOWTEAM/MedicoLLM
Commit History
-
Update README.md
Verified signaturefecb6a0
-
Update README.md
Verified signaturec15a5cd -
Delete trainer_state.json
Verified signature30cddce -
Upload 4 files
Verified signaturebfb8bac
-
Create README.md
Verified signature9e570e6
-
Upload trainer_state.json with huggingface_hub
Verified signature4337a51 -
Upload pytorch_model.bin.index.json with huggingface_hub
Verified signaturee3c9b4f -
Upload pytorch_model-00019-of-00019.bin with huggingface_hub
Verified signaturea149830 -
Upload pytorch_model-00018-of-00019.bin with huggingface_hub
Verified signature759286b -
Upload pytorch_model-00017-of-00019.bin with huggingface_hub
Verified signaturebc6cc14 -
Upload pytorch_model-00016-of-00019.bin with huggingface_hub
Verified signature4a31faa -
Upload pytorch_model-00015-of-00019.bin with huggingface_hub
Verified signaturef90ca82 -
Upload pytorch_model-00014-of-00019.bin with huggingface_hub
Verified signature3f9fab1 -
Upload pytorch_model-00013-of-00019.bin with huggingface_hub
Verified signature57c9232 -
Upload pytorch_model-00012-of-00019.bin with huggingface_hub
Verified signaturee6b0181 -
Upload pytorch_model-00011-of-00019.bin with huggingface_hub
Verified signature9c87fc6 -
Upload pytorch_model-00010-of-00019.bin with huggingface_hub
Verified signatureb40dbc4 -
Upload pytorch_model-00009-of-00019.bin with huggingface_hub
Verified signature3bbcca1 -
Upload pytorch_model-00008-of-00019.bin with huggingface_hub
Verified signaturecb39004 -
Upload pytorch_model-00007-of-00019.bin with huggingface_hub
Verified signature75381f8 -
Upload pytorch_model-00006-of-00019.bin with huggingface_hub
Verified signature8bd6890 -
Upload pytorch_model-00005-of-00019.bin with huggingface_hub
Verified signature67d7680 -
Upload pytorch_model-00004-of-00019.bin with huggingface_hub
Verified signaturea32ac1b -
Upload pytorch_model-00003-of-00019.bin with huggingface_hub
Verified signaturea8a1348 -
Upload pytorch_model-00002-of-00019.bin with huggingface_hub
Verified signaturece93d41 -
Upload pytorch_model-00001-of-00019.bin with huggingface_hub
Verified signatured987c47 -
Upload generation_config.json with huggingface_hub
Verified signature5a9cc7a -
Upload config.json with huggingface_hub
Verified signaturee645655 -
initial commit
Verified signature443803c