Text Generation
Transformers
PyTorch
Safetensors
English
llama
biology
medical
text-generation-inference
Instructions to use AdaptLLM/medicine-LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdaptLLM/medicine-LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdaptLLM/medicine-LLM")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdaptLLM/medicine-LLM") model = AutoModelForCausalLM.from_pretrained("AdaptLLM/medicine-LLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdaptLLM/medicine-LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdaptLLM/medicine-LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdaptLLM/medicine-LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdaptLLM/medicine-LLM
- SGLang
How to use AdaptLLM/medicine-LLM 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 "AdaptLLM/medicine-LLM" \ --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": "AdaptLLM/medicine-LLM", "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 "AdaptLLM/medicine-LLM" \ --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": "AdaptLLM/medicine-LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdaptLLM/medicine-LLM with Docker Model Runner:
docker model run hf.co/AdaptLLM/medicine-LLM
- Downloads last month
- 17
Model tree for AdaptLLM/medicine-LLM
Datasets used to train AdaptLLM/medicine-LLM
Viewer β’ Updated β’ 2.94M β’ 20.2k β’ 1.57k
GAIR/lima
Viewer β’ Updated β’ 1.33k β’ 5.7k β’ 467
WizardLMTeam/WizardLM_evol_instruct_V2_196k
Viewer β’ Updated β’ 143k β’ 4.18k β’ 250
Spaces using AdaptLLM/medicine-LLM 19
π»
FallnAI/Quantize-HF-Models
π
openfree/LLM_Quantization
π
seawolf2357/LLM_Quantization
π
K00B404/LLM_Quantization
π
R-Kentaren/LLM_Quantization
Papers for AdaptLLM/medicine-LLM
On Domain-Specific Post-Training for Multimodal Large Language Models
Paper β’ 2411.19930 β’ Published β’ 30
Instruction Pre-Training: Language Models are Supervised Multitask Learners
Paper β’ 2406.14491 β’ Published β’ 96
Adapting Large Language Models via Reading Comprehension
Paper β’ 2309.09530 β’ Published β’ 82