Text Generation
Transformers
Safetensors
English
llama
causal-lm
pretrained
text-generation-inference
Instructions to use lugman/Droplet-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lugman/Droplet-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lugman/Droplet-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lugman/Droplet-v2") model = AutoModelForCausalLM.from_pretrained("lugman/Droplet-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lugman/Droplet-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lugman/Droplet-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lugman/Droplet-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lugman/Droplet-v2
- SGLang
How to use lugman/Droplet-v2 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 "lugman/Droplet-v2" \ --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": "lugman/Droplet-v2", "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 "lugman/Droplet-v2" \ --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": "lugman/Droplet-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lugman/Droplet-v2 with Docker Model Runner:
docker model run hf.co/lugman/Droplet-v2
Commit History
-
Update README.md
Verified signature741dc2a -
Update README.md
Verified signaturecbadce6
-
Training in progress, step 21000, checkpoint
Verified signature379a0b2 -
Training in progress, step 21000
Verified signaturecec0a3d -
Training in progress, step 20000, checkpoint
Verified signature4d78df9 -
Training in progress, step 20000
Verified signatureeaceecb -
Training in progress, step 19000, checkpoint
Verified signature3ca28f9 -
Training in progress, step 19000
Verified signature1f37f30 -
Training in progress, step 18000, checkpoint
Verified signature8568e47 -
Training in progress, step 18000
Verified signature3222115 -
Training in progress, step 17000, checkpoint
Verified signature20e8273 -
Training in progress, step 17000
Verified signature60a82ea -
Training in progress, step 16000, checkpoint
Verified signature3fda941 -
Training in progress, step 16000
Verified signature2c706d1 -
Training in progress, step 15000, checkpoint
Verified signature205e489 -
Training in progress, step 15000
Verified signaturef2b1b92 -
Training in progress, step 14000, checkpoint
Verified signatured2dbe4a -
Training in progress, step 14000
Verified signature8f3c889 -
Training in progress, step 13000, checkpoint
Verified signatureba5d85e -
Training in progress, step 13000
Verified signature7f82829 -
Training in progress, step 12000, checkpoint
Verified signatured9ccf5c -
Training in progress, step 12000
Verified signature0b75247 -
Training in progress, step 11000, checkpoint
Verified signature86d85fa -
Training in progress, step 11000
Verified signature56240b0 -
Training in progress, step 10000, checkpoint
Verified signature3515e7b -
Training in progress, step 10000
Verified signature6f03148 -
Training in progress, step 9000, checkpoint
Verified signaturefa90eb6 -
Training in progress, step 9000
Verified signature81ee1f5 -
Training in progress, step 8000, checkpoint
Verified signature6237520 -
Training in progress, step 8000
Verified signature6af6fd4 -
Training in progress, step 7000, checkpoint
Verified signatureb9ea96f -
Training in progress, step 7000
Verified signature027aeb4
-
Training in progress, step 6000, checkpoint
Verified signature0eff207 -
Training in progress, step 6000
Verified signature50d8ec2 -
Training in progress, step 5000
Verified signature1b6cc7f -
Training in progress, step 4000
Verified signature6f3d2c0 -
Training in progress, step 3000
Verified signatureb1880ec -
Training in progress, step 2000
Verified signature5c02015 -
Training in progress, step 1000
Verified signature162823f -
initial commit
Verified signature86e6b49