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") 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]:])) - llama-cpp-python
How to use Zwounds/boolean-search-model with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Zwounds/boolean-search-model", filename="boolean.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Zwounds/boolean-search-model with llama.cpp:
Install from brew
brew install llama.cpp # 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
Install from WinGet (Windows)
winget install llama.cpp # 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
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 Studio new
How to use Zwounds/boolean-search-model 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 Zwounds/boolean-search-model 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 Zwounds/boolean-search-model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Zwounds/boolean-search-model to start chatting
- Pi new
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-server -hf Zwounds/boolean-search-model
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/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
- Hermes Agent new
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-server -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
- 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
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- config.json +13 -2
- generation_config.json +1 -1
- model-00001-of-00002.safetensors +2 -2
- model.safetensors.index.json +0 -0
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "unsloth/llama-3.1-8b-instruct-unsloth-bnb-4bit",
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
|
@@ -20,6 +19,18 @@
|
|
| 20 |
"num_key_value_heads": 8,
|
| 21 |
"pad_token_id": 128004,
|
| 22 |
"pretraining_tp": 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"rms_norm_eps": 1e-05,
|
| 24 |
"rope_scaling": {
|
| 25 |
"factor": 8.0,
|
|
@@ -31,7 +42,7 @@
|
|
| 31 |
"rope_theta": 500000.0,
|
| 32 |
"tie_word_embeddings": false,
|
| 33 |
"torch_dtype": "bfloat16",
|
| 34 |
-
"transformers_version": "4.
|
| 35 |
"unsloth_fixed": true,
|
| 36 |
"unsloth_version": "2025.3.17",
|
| 37 |
"use_cache": true,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"LlamaForCausalLM"
|
| 4 |
],
|
|
|
|
| 19 |
"num_key_value_heads": 8,
|
| 20 |
"pad_token_id": 128004,
|
| 21 |
"pretraining_tp": 1,
|
| 22 |
+
"quantization_config": {
|
| 23 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 24 |
+
"bnb_4bit_quant_type": "nf4",
|
| 25 |
+
"bnb_4bit_use_double_quant": true,
|
| 26 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 27 |
+
"llm_int8_has_fp16_weight": false,
|
| 28 |
+
"llm_int8_skip_modules": null,
|
| 29 |
+
"llm_int8_threshold": 6.0,
|
| 30 |
+
"load_in_4bit": true,
|
| 31 |
+
"load_in_8bit": false,
|
| 32 |
+
"quant_method": "bitsandbytes"
|
| 33 |
+
},
|
| 34 |
"rms_norm_eps": 1e-05,
|
| 35 |
"rope_scaling": {
|
| 36 |
"factor": 8.0,
|
|
|
|
| 42 |
"rope_theta": 500000.0,
|
| 43 |
"tie_word_embeddings": false,
|
| 44 |
"torch_dtype": "bfloat16",
|
| 45 |
+
"transformers_version": "4.50.0.dev0",
|
| 46 |
"unsloth_fixed": true,
|
| 47 |
"unsloth_version": "2025.3.17",
|
| 48 |
"use_cache": true,
|
generation_config.json
CHANGED
|
@@ -10,5 +10,5 @@
|
|
| 10 |
"pad_token_id": 128004,
|
| 11 |
"temperature": 0.6,
|
| 12 |
"top_p": 0.9,
|
| 13 |
-
"transformers_version": "4.
|
| 14 |
}
|
|
|
|
| 10 |
"pad_token_id": 128004,
|
| 11 |
"temperature": 0.6,
|
| 12 |
"top_p": 0.9,
|
| 13 |
+
"transformers_version": "4.50.0.dev0"
|
| 14 |
}
|
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:e11b472f17ce6924d78e81d10c80950f3da2b3a482abacbeb221f206662fabef
|
| 3 |
+
size 4652073141
|
model.safetensors.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|