Instructions to use llmware/slim-extract-tiny-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-extract-tiny-tool with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-extract-tiny-tool", dtype="auto") - llama-cpp-python
How to use llmware/slim-extract-tiny-tool with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="llmware/slim-extract-tiny-tool", filename="tiny-extract.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use llmware/slim-extract-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-extract-tiny-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-extract-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-extract-tiny-tool # Run inference directly in the terminal: llama cli -hf llmware/slim-extract-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-extract-tiny-tool # Run inference directly in the terminal: ./llama-cli -hf llmware/slim-extract-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-extract-tiny-tool # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/slim-extract-tiny-tool
Use Docker
docker model run hf.co/llmware/slim-extract-tiny-tool
- LM Studio
- Jan
- Ollama
How to use llmware/slim-extract-tiny-tool with Ollama:
ollama run hf.co/llmware/slim-extract-tiny-tool
- Unsloth Studio
How to use llmware/slim-extract-tiny-tool with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for llmware/slim-extract-tiny-tool to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for llmware/slim-extract-tiny-tool to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for llmware/slim-extract-tiny-tool to start chatting
- Atomic Chat new
- Docker Model Runner
How to use llmware/slim-extract-tiny-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-extract-tiny-tool
- Lemonade
How to use llmware/slim-extract-tiny-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-extract-tiny-tool
Run and chat with the model
lemonade run user.slim-extract-tiny-tool-{{QUANT_TAG}}List all available models
lemonade list
Update config.json
Browse files- config.json +8 -8
config.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
| 1 |
{
|
| 2 |
-
"model_name": "slim-extract-tool",
|
| 3 |
-
"model_ft_base": "slim-extract",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
-
"model_base": "
|
| 6 |
-
"model_type": "
|
| 7 |
-
"tokenizer": "llmware/slim-extract",
|
| 8 |
-
"parameters": "
|
| 9 |
-
"description": "slim-extract is a function-calling model, fine-tuned to output structured dictionaries",
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
"prompt_format": "<human> {context_passage} <extract> {insert-custom-key} </extract>\n<bot>:",
|
| 12 |
"output_format": "{'{custom_key}': [list of values extracted from text aligning to custom key]}",
|
| 13 |
"primary_keys": ["custom_keys"],
|
| 14 |
"output_values": ["range of custom 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-extract-tiny-tool",
|
| 3 |
+
"model_ft_base": "slim-extract-tiny",
|
| 4 |
"quantization": "4Q_K_M GGUF",
|
| 5 |
+
"model_base": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
|
| 6 |
+
"model_type": "llama",
|
| 7 |
+
"tokenizer": "llmware/slim-extract-tiny",
|
| 8 |
+
"parameters": "1.1 billion",
|
| 9 |
+
"description": "slim-extract-tiny is a function-calling model, fine-tuned to output structured dictionaries",
|
| 10 |
"prompt_wrapper": "human_bot",
|
| 11 |
"prompt_format": "<human> {context_passage} <extract> {insert-custom-key} </extract>\n<bot>:",
|
| 12 |
"output_format": "{'{custom_key}': [list of values extracted from text aligning to custom key]}",
|
| 13 |
"primary_keys": ["custom_keys"],
|
| 14 |
"output_values": ["range of custom values"],
|
| 15 |
"publisher": "llmware",
|
| 16 |
+
"release_date": "june 2024",
|
| 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."
|