by echoangle · 2y ago · 0 comments
You can also just test it out using the cli:
ollama run hf.co/unsloth/SmolLM2-1.7B-Instruct-GGUF:F16
1. https://huggingface.co/docs/hub/ollama
2. https://github.com/ollama/ollama?tab=readme-ov-file#start-ol...
$ docker run --runtime nvidia --gpus all \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HUGGING_FACE_HUB_TOKEN=<secret>" \
-p 8000:8000 \
--ipc=host \
vllm/vllm-openai:latest \
--model mistralai/Mistral-7B-v0.1
In shell 2: $ curl http://localhost:8000/v1/completions \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/Mistral-7B-v0.1",
"prompt": "San Francisco is a",
"max_tokens": 7,
"temperature": 0
}'https://huggingface.co/docs/text-generation-inference/en/ins...