Download Text generation from Festlige/model22: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/Festlige/model22/resolve/main/Text%20generation
- Command line
-
hf download 'hf://Festlige/model22/Text generation'
-
curl -L -o 'Text generation' https://huggingface.co/Festlige/model22/resolve/main/Text%20generation
299 Bytes
| curl -sS https://router.huggingface.co/v1/chat/completions \ | |
| -H "Authorization: Bearer $HF_TOKEN" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "model": "meta-llama/Llama-3.1-8B-Instruct", | |
| "messages": [{"role":"user","content":"Say hi in 1 short sentence."}], | |
| "max_tokens": 80 | |
| }' |