How to use from
vLLMUse Docker
docker model run hf.co/DanielHesslow/Mistral_First2LayersQuick Links
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Mistral 7b model, but cut down to use only the first two layers.
For debugging
- Downloads last month
- 9
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "DanielHesslow/Mistral_First2Layers"# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DanielHesslow/Mistral_First2Layers", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'