hf-transformers-bot HF Staff
vLLM contracts with input cases (text): regenerated, baselines re-recorded
9ff1d38 verified Download integration.json from huggingface-mic-temp/starcoder2-3b-vllm-mic: direct link, hf CLI and curl.
- Browser
- Download file 2.01 kB
-
https://huggingface.co/huggingface-mic-temp/starcoder2-3b-vllm-mic/resolve/main/integration.json
- Command line
-
hf download hf://huggingface-mic-temp/starcoder2-3b-vllm-mic/integration.json
-
curl -L -o integration.json https://huggingface.co/huggingface-mic-temp/starcoder2-3b-vllm-mic/resolve/main/integration.json
2.01 kB
| { | |
| "mic": "0.3", | |
| "name": "starcoder2-3b: vLLM contract", | |
| "usage": "Each vLLM integration checks that vLLM serving the fixture agrees with plain Transformers greedy generation on the same weights, for every input case: vllm/transformers uses the Transformers backend (model_impl='transformers')", | |
| "architecture": "Starcoder2ForCausalLM", | |
| "checkpoints": { | |
| "bigcode/starcoder2-3b": { | |
| "fixture": "huggingface-mic-temp/starcoder2-3b-vllm-mic" | |
| } | |
| }, | |
| "fixtures": { | |
| "huggingface-mic-temp/starcoder2-3b-vllm-mic": { | |
| "built_from": "bigcode/starcoder2-3b", | |
| "covers": [ | |
| "bigcode/starcoder2-3b" | |
| ], | |
| "build": { | |
| "seed": 17, | |
| "model_class": "Starcoder2ForCausalLM", | |
| "config_overrides": { | |
| "fields": { | |
| "num_attention_heads": 2, | |
| "num_key_value_heads": 1 | |
| }, | |
| "reason": "vLLM's Transformers backend on CPU supports head widths [32, 48, 64, 80]...; the shrink rule gives 16. 4 heads of 16 -> 2 of 32 keeps the q/k/v/o projection shapes (weights sized by the head width, e.g. q/k norms, grow). (serving profile vllm-cpu v1)" | |
| } | |
| } | |
| } | |
| }, | |
| "integrations": { | |
| "vllm/transformers": { | |
| "entry_point": "integrations/vllm/transformers/usage.md", | |
| "format": "runnable-markdown", | |
| "requires": [ | |
| "vllm", | |
| "transformers>=5", | |
| "torch" | |
| ], | |
| "targets": [ | |
| "fixtures" | |
| ], | |
| "variants": { | |
| "default": { | |
| "dtype": "float32" | |
| } | |
| }, | |
| "cases": { | |
| "text": {} | |
| }, | |
| "training": false, | |
| "resources": { | |
| "fixture": { | |
| "memory_gb": 2, | |
| "download_mb": 50 | |
| } | |
| }, | |
| "outputs": { | |
| "runtime": { | |
| "compare": "exact" | |
| }, | |
| "checks": { | |
| "compare": "all_true" | |
| } | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "runtime": { | |
| "compare": "exact" | |
| }, | |
| "checks": { | |
| "compare": "all_true" | |
| } | |
| } | |
| } | |