Instructions to use llmware/slim-q-gen-tiny-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-q-gen-tiny-tool with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-q-gen-tiny-tool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-q-gen-tiny-tool with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf llmware/slim-q-gen-tiny-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-q-gen-tiny-tool
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf llmware/slim-q-gen-tiny-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-q-gen-tiny-tool
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf llmware/slim-q-gen-tiny-tool # Run inference directly in the terminal: ./llama-cli -hf llmware/slim-q-gen-tiny-tool
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf llmware/slim-q-gen-tiny-tool # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/slim-q-gen-tiny-tool
Use Docker
docker model run hf.co/llmware/slim-q-gen-tiny-tool
- LM Studio
- Jan
- Ollama
How to use llmware/slim-q-gen-tiny-tool with Ollama:
ollama run hf.co/llmware/slim-q-gen-tiny-tool
- Unsloth Desktop
- Docker Model Runner
How to use llmware/slim-q-gen-tiny-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-q-gen-tiny-tool
- Lemonade
How to use llmware/slim-q-gen-tiny-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-q-gen-tiny-tool
Run and chat with the model
lemonade run user.slim-q-gen-tiny-tool-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update config.json
Browse files- config.json +13 -12
config.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
| 1 |
{
|
| 2 |
-
"model_name": "slim-
|
| 3 |
-
"model_ft_base": "slim-
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
-
"model_base": "
|
| 6 |
-
"model_type": "
|
| 7 |
-
"tokenizer": "llmware/slim-
|
| 8 |
-
"
|
| 9 |
-
"
|
|
|
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
-
"prompt_format": "<human> {context_passage} <
|
| 12 |
-
"output_format": "{'{
|
| 13 |
-
"primary_keys": ["
|
| 14 |
-
"output_values": ["
|
| 15 |
"publisher": "llmware",
|
| 16 |
-
"release_date": "
|
| 17 |
"test_set": [
|
| 18 |
|
| 19 |
{"context": "The Nasdaq Composite and the S&P 500 each rose for the fifth day in a row Wednesday. The S&P increased by a minuscule 0.08% but was still able to secure a new all-time closing record. The Nasdaq was led by a broader tech rally and finished the day 0.36% higher. The Dow missed out on the day’s rally and was dragged down by declines of more than 2% in Verizon and 3M, which each reported earnings on Tuesday. Netflix, meanwhile, soared after its Tuesday earnings report and finished the day with gains of more than 10%. Follow live market updates."
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_name": "slim-q-gen-tiny-tool",
|
| 3 |
+
"model_ft_base": "slim-q-gen-tiny",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
+
"model_base": "tinyllama",
|
| 6 |
+
"model_type": "llama",
|
| 7 |
+
"tokenizer": "llmware/slim-q-gen-tiny",
|
| 8 |
+
"tokenizer_local": "tokenizer_tl.json",
|
| 9 |
+
"parameters": "1.1 billion",
|
| 10 |
+
"description": "slim-q-gen-tiny-tool is a function-calling model, fine-tuned to output structured dictionaries",
|
| 11 |
"prompt_wrapper": "human_bot",
|
| 12 |
+
"prompt_format": "<human> {context_passage} <generate> {insert-primary-key} </generate>\n<bot>:",
|
| 13 |
+
"output_format": "{'{question}': [generated question from the text]}",
|
| 14 |
+
"primary_keys": ["question", "boolean", "multiple choice"],
|
| 15 |
+
"output_values": ["generated question"],
|
| 16 |
"publisher": "llmware",
|
| 17 |
+
"release_date": "may 2024",
|
| 18 |
"test_set": [
|
| 19 |
|
| 20 |
{"context": "The Nasdaq Composite and the S&P 500 each rose for the fifth day in a row Wednesday. The S&P increased by a minuscule 0.08% but was still able to secure a new all-time closing record. The Nasdaq was led by a broader tech rally and finished the day 0.36% higher. The Dow missed out on the day’s rally and was dragged down by declines of more than 2% in Verizon and 3M, which each reported earnings on Tuesday. Netflix, meanwhile, soared after its Tuesday earnings report and finished the day with gains of more than 10%. Follow live market updates."
|