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")# 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
Droplet-v2
Droplet-v2 is a small, pretrained causal language model with 1,405,008 parameters. It uses the LlamaForCausalLM architecture with six transformer layers, a hidden size of 144, and a vocabulary of 1,536 tokens.
The model is a base checkpoint and has not been instruction-tuned. Its maximum context length is 1,024 tokens.
Evaluation results
The following results were measured with zero-shot evaluation. The general benchmarks used lm-eval 0.4.12. ArithMark-3 was evaluated separately using its benchmark script.
| Benchmark | Metric | Score |
|---|---|---|
| ARC-Easy | acc_norm |
29.80% |
| ARC-Challenge | acc_norm |
22.78% |
| HellaSwag | acc_norm |
27.42% |
| PIQA | acc_norm |
53.54% |
| BoolQ | acc |
40.64% |
| SciQ | acc_norm |
53.30% |
| ArithMark-3 | acc_norm |
31.80% |
Evaluation was performed in float32 with a maximum context length of 1,024 tokens.
Training datasets
The main pretraining mixture contains approximately 6 billion tokens.
| Source | Tokens | Share | Role |
|---|---|---|---|
fineweb-edu (sample-10BT) |
2.70B | 45% | Educational web text |
Ultra-FineWeb-L3-en-Multi-Style-Synthetic |
1.80B | 30% | Synthetic multi-style text |
cosmopedia-v2 |
1.50B | 25% | Synthetic educational text |
An additional approximately 30 million tokens from lugman/add-sub-pre-training were used for arithmetic-focused pretraining.
- Downloads last month
- 512