Instructions to use llmware/bling-answer-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/bling-answer-tool with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/bling-answer-tool", dtype="auto") - llama-cpp-python
How to use llmware/bling-answer-tool with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="llmware/bling-answer-tool", filename="bling-answer.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/bling-answer-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/bling-answer-tool # Run inference directly in the terminal: llama-cli -hf llmware/bling-answer-tool
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf llmware/bling-answer-tool # Run inference directly in the terminal: llama-cli -hf llmware/bling-answer-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/bling-answer-tool # Run inference directly in the terminal: ./llama-cli -hf llmware/bling-answer-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/bling-answer-tool # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/bling-answer-tool
Use Docker
docker model run hf.co/llmware/bling-answer-tool
- LM Studio
- Jan
- Ollama
How to use llmware/bling-answer-tool with Ollama:
ollama run hf.co/llmware/bling-answer-tool
- Unsloth Studio
How to use llmware/bling-answer-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/bling-answer-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/bling-answer-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/bling-answer-tool to start chatting
- Docker Model Runner
How to use llmware/bling-answer-tool with Docker Model Runner:
docker model run hf.co/llmware/bling-answer-tool
- Lemonade
How to use llmware/bling-answer-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/bling-answer-tool
Run and chat with the model
lemonade run user.bling-answer-tool-{{QUANT_TAG}}List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,20 +6,18 @@ license: apache-2.0
|
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
-
**
|
| 10 |
-
|
| 11 |
-
slim-ner-tool is a 4_K_M quantized GGUF version of slim-ner, providing a small, fast inference implementation.
|
| 12 |
|
| 13 |
Load in your favorite GGUF inference engine (see details in config.json to set up the prompt template), or try with llmware as follows:
|
| 14 |
|
| 15 |
from llmware.models import ModelCatalog
|
| 16 |
|
| 17 |
# to load the model and make a basic inference
|
| 18 |
-
|
| 19 |
-
response =
|
| 20 |
|
| 21 |
# this one line will download the model and run a series of tests
|
| 22 |
-
ModelCatalog().test_run("
|
| 23 |
|
| 24 |
|
| 25 |
Slim models can also be loaded even more simply as part of a multi-model, multi-step LLMfx calls:
|
|
@@ -27,8 +25,8 @@ Slim models can also be loaded even more simply as part of a multi-model, multi-
|
|
| 27 |
from llmware.agents import LLMfx
|
| 28 |
|
| 29 |
llm_fx = LLMfx()
|
| 30 |
-
llm_fx.load_tool("
|
| 31 |
-
response = llm_fx.
|
| 32 |
|
| 33 |
|
| 34 |
### Model Description
|
|
@@ -39,18 +37,15 @@ Slim models can also be loaded even more simply as part of a multi-model, multi-
|
|
| 39 |
- **Model type:** GGUF
|
| 40 |
- **Language(s) (NLP):** English
|
| 41 |
- **License:** Apache 2.0
|
| 42 |
-
- **Quantized from model:** llmware/
|
| 43 |
|
| 44 |
## Uses
|
| 45 |
|
| 46 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 47 |
|
| 48 |
-
SLIM models provide a fast, flexible, intuitive way to integrate classifiers and structured function calls into RAG and LLM application workflows.
|
| 49 |
-
|
| 50 |
Model instructions, details and test samples have been packaged into the config.json file in the repository, along with the GGUF file.
|
| 51 |
|
| 52 |
|
| 53 |
-
|
| 54 |
## Model Card Contact
|
| 55 |
|
| 56 |
Darren Oberst & llmware team
|
|
|
|
| 6 |
|
| 7 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 8 |
|
| 9 |
+
**bling-qa-tool** is a 4_K_M quantized GGUF version of bling-tiny-llama-1b-v0, providing a small, fast inference implementation.
|
|
|
|
|
|
|
| 10 |
|
| 11 |
Load in your favorite GGUF inference engine (see details in config.json to set up the prompt template), or try with llmware as follows:
|
| 12 |
|
| 13 |
from llmware.models import ModelCatalog
|
| 14 |
|
| 15 |
# to load the model and make a basic inference
|
| 16 |
+
qa_tool = ModelCatalog().load_model("bling-qa-tool")
|
| 17 |
+
response = qa_tool.function_call(text_sample)
|
| 18 |
|
| 19 |
# this one line will download the model and run a series of tests
|
| 20 |
+
ModelCatalog().test_run("bling-qa-tool", verbose=True)
|
| 21 |
|
| 22 |
|
| 23 |
Slim models can also be loaded even more simply as part of a multi-model, multi-step LLMfx calls:
|
|
|
|
| 25 |
from llmware.agents import LLMfx
|
| 26 |
|
| 27 |
llm_fx = LLMfx()
|
| 28 |
+
llm_fx.load_tool("quick_question")
|
| 29 |
+
response = llm_fx.quick_question(text)
|
| 30 |
|
| 31 |
|
| 32 |
### Model Description
|
|
|
|
| 37 |
- **Model type:** GGUF
|
| 38 |
- **Language(s) (NLP):** English
|
| 39 |
- **License:** Apache 2.0
|
| 40 |
+
- **Quantized from model:** llmware/bling-tiny-llama-1b-v0
|
| 41 |
|
| 42 |
## Uses
|
| 43 |
|
| 44 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 45 |
|
|
|
|
|
|
|
| 46 |
Model instructions, details and test samples have been packaged into the config.json file in the repository, along with the GGUF file.
|
| 47 |
|
| 48 |
|
|
|
|
| 49 |
## Model Card Contact
|
| 50 |
|
| 51 |
Darren Oberst & llmware team
|