hf-transformers-bot HF Staff
vLLM contracts with input cases (text): regenerated, baselines re-recorded
2dca510 verified Download integration.json from huggingface-mic-temp/tiny_starcoder_py-vllm-mic: direct link, hf CLI and curl.
- Browser
- Download file 2.04 kB
-
https://huggingface.co/huggingface-mic-temp/tiny_starcoder_py-vllm-mic/resolve/main/integration.json
- Command line
-
hf download hf://huggingface-mic-temp/tiny_starcoder_py-vllm-mic/integration.json
-
curl -L -o integration.json https://huggingface.co/huggingface-mic-temp/tiny_starcoder_py-vllm-mic/resolve/main/integration.json
2.04 kB
| { | |
| "mic": "0.3", | |
| "name": "tiny_starcoder_py: 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": "GPTBigCodeForCausalLM", | |
| "checkpoints": { | |
| "bigcode/tiny_starcoder_py": { | |
| "fixture": "huggingface-mic-temp/tiny_starcoder_py-vllm-mic" | |
| } | |
| }, | |
| "fixtures": { | |
| "huggingface-mic-temp/tiny_starcoder_py-vllm-mic": { | |
| "built_from": "bigcode/tiny_starcoder_py", | |
| "covers": [ | |
| "bigcode/tiny_starcoder_py" | |
| ], | |
| "build": { | |
| "seed": 17, | |
| "model_class": "GPTBigCodeForCausalLM", | |
| "config_overrides": { | |
| "fields": { | |
| "n_head": 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/o projection shapes; the k/v projections grow (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" | |
| } | |
| } | |
| } | |