Text Generation
Transformers
Safetensors
GGUF
llama
boolean-search
search
language-to-query
text2text-generation
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use Zwounds/boolean-search-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zwounds/boolean-search-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zwounds/boolean-search-model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zwounds/boolean-search-model") model = AutoModelForCausalLM.from_pretrained("Zwounds/boolean-search-model", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Zwounds/boolean-search-model 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 Zwounds/boolean-search-model # Run inference directly in the terminal: llama cli -hf Zwounds/boolean-search-model
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Zwounds/boolean-search-model # Run inference directly in the terminal: llama cli -hf Zwounds/boolean-search-model
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 Zwounds/boolean-search-model # Run inference directly in the terminal: ./llama-cli -hf Zwounds/boolean-search-model
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 Zwounds/boolean-search-model # Run inference directly in the terminal: ./build/bin/llama-cli -hf Zwounds/boolean-search-model
Use Docker
docker model run hf.co/Zwounds/boolean-search-model
- LM Studio
- Jan
- vLLM
How to use Zwounds/boolean-search-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zwounds/boolean-search-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zwounds/boolean-search-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Zwounds/boolean-search-model
- SGLang
How to use Zwounds/boolean-search-model 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 "Zwounds/boolean-search-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zwounds/boolean-search-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Zwounds/boolean-search-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zwounds/boolean-search-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Zwounds/boolean-search-model with Ollama:
ollama run hf.co/Zwounds/boolean-search-model
- Unsloth Desktop
- Pi
How to use Zwounds/boolean-search-model with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Zwounds/boolean-search-model
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Zwounds/boolean-search-model" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Zwounds/boolean-search-model with Docker Model Runner:
docker model run hf.co/Zwounds/boolean-search-model
- Lemonade
How to use Zwounds/boolean-search-model with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Zwounds/boolean-search-model
Run and chat with the model
lemonade run user.boolean-search-model-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use Zwounds/boolean-search-model with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Zwounds/boolean-search-model
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Zwounds/boolean-search-model
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Zwounds/boolean-search-model with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Zwounds/boolean-search-model
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Zwounds/boolean-search-model" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- README.md +6 -5
- config.json +2 -2
- generation_config.json +5 -2
- model-00001-of-00002.safetensors +2 -2
- model-00002-of-00002.safetensors +1 -1
- model.safetensors.index.json +1 -1
README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
library_name: transformers
|
| 9 |
pipeline_tag: text2text-generation
|
| 10 |
license: llama2
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
+
- transformers
|
| 4 |
+
- llama
|
| 5 |
+
- boolean-search
|
| 6 |
+
- search
|
| 7 |
+
- language-to-query
|
| 8 |
+
- unsloth
|
| 9 |
library_name: transformers
|
| 10 |
pipeline_tag: text2text-generation
|
| 11 |
license: llama2
|
config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"attention_bias": false,
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"bos_token_id": 128000,
|
| 9 |
-
"eos_token_id":
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
| 12 |
"hidden_size": 4096,
|
|
@@ -18,7 +18,7 @@
|
|
| 18 |
"num_attention_heads": 32,
|
| 19 |
"num_hidden_layers": 32,
|
| 20 |
"num_key_value_heads": 8,
|
| 21 |
-
"pad_token_id":
|
| 22 |
"pretraining_tp": 1,
|
| 23 |
"quantization_config": {
|
| 24 |
"bnb_4bit_compute_dtype": "bfloat16",
|
|
|
|
| 6 |
"attention_bias": false,
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"bos_token_id": 128000,
|
| 9 |
+
"eos_token_id": 128009,
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
| 12 |
"hidden_size": 4096,
|
|
|
|
| 18 |
"num_attention_heads": 32,
|
| 19 |
"num_hidden_layers": 32,
|
| 20 |
"num_key_value_heads": 8,
|
| 21 |
+
"pad_token_id": 128004,
|
| 22 |
"pretraining_tp": 1,
|
| 23 |
"quantization_config": {
|
| 24 |
"bnb_4bit_compute_dtype": "bfloat16",
|
generation_config.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
"bos_token_id": 128000,
|
| 4 |
"do_sample": true,
|
| 5 |
-
"eos_token_id":
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"max_length": 131072,
|
| 7 |
"pad_token_id": 128004,
|
| 8 |
"temperature": 0.6,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"bos_token_id": 128000,
|
| 3 |
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
128001,
|
| 6 |
+
128008,
|
| 7 |
+
128009
|
| 8 |
+
],
|
| 9 |
"max_length": 131072,
|
| 10 |
"pad_token_id": 128004,
|
| 11 |
"temperature": 0.6,
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b15a4b0bc7157bfadc78bb86dcaf9116f3ebcae6d819ac947017e595210a6522
|
| 3 |
+
size 4652073135
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1050673280
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5321ca97dd0968a3e2b676b3a42728e9f5327d516bcf0addd4e9cd61c068a1ad
|
| 3 |
size 1050673280
|
model.safetensors.index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
-
"total_size":
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"lm_head.weight": "model-00002-of-00002.safetensors",
|
|
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
+
"total_size": 5702577951
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"lm_head.weight": "model-00002-of-00002.safetensors",
|