Instructions to use llmware/slim-qa-gen-tiny-ov with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-qa-gen-tiny-ov with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="llmware/slim-qa-gen-tiny-ov")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("llmware/slim-qa-gen-tiny-ov") model = AutoModelForCausalLM.from_pretrained("llmware/slim-qa-gen-tiny-ov") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use llmware/slim-qa-gen-tiny-ov with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "llmware/slim-qa-gen-tiny-ov" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "llmware/slim-qa-gen-tiny-ov", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/llmware/slim-qa-gen-tiny-ov
- SGLang
How to use llmware/slim-qa-gen-tiny-ov with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "llmware/slim-qa-gen-tiny-ov" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "llmware/slim-qa-gen-tiny-ov", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "llmware/slim-qa-gen-tiny-ov" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "llmware/slim-qa-gen-tiny-ov", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use llmware/slim-qa-gen-tiny-ov with Docker Model Runner:
docker model run hf.co/llmware/slim-qa-gen-tiny-ov
Upload hash_record_sha256.json
Browse files- hash_record_sha256.json +10 -0
hash_record_sha256.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"openvino_detokenizer.bin": "9556d0a1f310629e217450ac4198c49f5457f1a69e22ce7c9f8e81fab4d530a7",
|
| 3 |
+
"openvino_detokenizer.xml": "e54f824b2dd3bc8bf59cfcac829621de31605c87e82ab03c43fd9ed53ca5d660",
|
| 4 |
+
"openvino_model.bin": "3b23921c34b98936677ec08756ed0b3be1abdcc439889ecad9779f654c9e664d",
|
| 5 |
+
"openvino_model.xml": "56ee20bec7073c441f96577532b4df0aa18a3f61e804b1b763dd7093d04d409d",
|
| 6 |
+
"openvino_tokenizer.bin": "9ec38b843ff6c229ec650d242feaad2c9e4fa694c69d5e20a8e68b95a878c7ad",
|
| 7 |
+
"openvino_tokenizer.xml": "b7b588617358ee6246e137070c2bc880a7e731f0f13ffdb608cc100626de163c",
|
| 8 |
+
"tokenizer.model": "9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347",
|
| 9 |
+
"time_stamp": "2024-09-24_035727"
|
| 10 |
+
}
|