Instructions to use llmware/slim-summary-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-summary-tool with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-summary-tool", dtype="auto") - llama-cpp-python
How to use llmware/slim-summary-tool with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="llmware/slim-summary-tool", filename="slim-summarize.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use llmware/slim-summary-tool with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf llmware/slim-summary-tool # Run inference directly in the terminal: llama-cli -hf llmware/slim-summary-tool
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf llmware/slim-summary-tool # Run inference directly in the terminal: llama-cli -hf llmware/slim-summary-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-summary-tool # Run inference directly in the terminal: ./llama-cli -hf llmware/slim-summary-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-summary-tool # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/slim-summary-tool
Use Docker
docker model run hf.co/llmware/slim-summary-tool
- LM Studio
- Jan
- Ollama
How to use llmware/slim-summary-tool with Ollama:
ollama run hf.co/llmware/slim-summary-tool
- Unsloth Studio new
How to use llmware/slim-summary-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-summary-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-summary-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-summary-tool to start chatting
- Docker Model Runner
How to use llmware/slim-summary-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-summary-tool
- Lemonade
How to use llmware/slim-summary-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-summary-tool
Run and chat with the model
lemonade run user.slim-summary-tool-{{QUANT_TAG}}List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)SLIM-SUMMARY-TOOL
slim-summary-tool is a 4_K_M quantized GGUF version of slim-summary, providing a small, fast inference implementation, to provide high-quality summarizations of complex business documents, on a small, specialized locally-deployable model with summary output structured as a python list of key points.
The size of the self-contained GGUF model binary is 1.71 GB, which is small enough to run locally on a CPU with reasonable inference speed, and has been designed to balance high-quality with the ability to deploy on a local machine.
The model takes as input a text passage, an optional parameter with a focusing phrase or query, and an experimental optional (N) parameter, which is used to guide the model to a specific number of items return in a summary list.
Please see the usage notes at: slim-summary
To pull the model via API:
from huggingface_hub import snapshot_download
snapshot_download("llmware/slim-summary-tool", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False)
Load in your favorite GGUF inference engine, or try with llmware as follows:
from llmware.models import ModelCatalog
# to load the model and make a basic inference
model = ModelCatalog().load_model("slim-summary-tool")
response = model.function_call(text_sample)
# this one line will download the model and run a series of tests
ModelCatalog().tool_test_run("slim-summary-tool", verbose=True)
Note: please review config.json in the repository for prompt wrapping information, details on the model, and full test set.
Model Card Contact
Darren Oberst & llmware team
- Downloads last month
- 220
We're not able to determine the quantization variants.
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="llmware/slim-summary-tool", filename="slim-summarize.gguf", )