Instructions to use kimjg/recallResolver-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kimjg/recallResolver-1B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3.2-1b-instruct-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "kimjg/recallResolver-1B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use kimjg/recallResolver-1B 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 kimjg/recallResolver-1B:Q4_K_M # Run inference directly in the terminal: llama cli -hf kimjg/recallResolver-1B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kimjg/recallResolver-1B:Q4_K_M # Run inference directly in the terminal: llama cli -hf kimjg/recallResolver-1B:Q4_K_M
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 kimjg/recallResolver-1B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf kimjg/recallResolver-1B:Q4_K_M
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 kimjg/recallResolver-1B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf kimjg/recallResolver-1B:Q4_K_M
Use Docker
docker model run hf.co/kimjg/recallResolver-1B:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use kimjg/recallResolver-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kimjg/recallResolver-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kimjg/recallResolver-1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kimjg/recallResolver-1B:Q4_K_M
- Ollama
How to use kimjg/recallResolver-1B with Ollama:
ollama run hf.co/kimjg/recallResolver-1B:Q4_K_M
- Unsloth Desktop
- Pi
How to use kimjg/recallResolver-1B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kimjg/recallResolver-1B:Q4_K_M
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": "kimjg/recallResolver-1B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kimjg/recallResolver-1B with Docker Model Runner:
docker model run hf.co/kimjg/recallResolver-1B:Q4_K_M
- Lemonade
How to use kimjg/recallResolver-1B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kimjg/recallResolver-1B:Q4_K_M
Run and chat with the model
lemonade run user.recallResolver-1B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use kimjg/recallResolver-1B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kimjg/recallResolver-1B:Q4_K_M
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 kimjg/recallResolver-1B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kimjg/recallResolver-1B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kimjg/recallResolver-1B:Q4_K_M
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 "kimjg/recallResolver-1B:Q4_K_M" \ --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"
recallResolver-1B
ํ๊ตญ์ด ๋ฉํฐํด ํ์ดํ๋ผ์ธ์ ํ์คํ ๋ฆฌ ๊ฐ ์ถ์ถ๊ธฐ โ "๊ทธ๊ฑฐ ์ฌ๊ณ ์ผ๋ง๋ ๋จ์์ด?"์ฒ๋ผ ๊ณผ๊ฑฐ ๋ํ์ ๊ฐ์ ๊ฐ๋ฆฌํค๋ ๋ฐํ๊ฐ ์ค๋ฉด, ๋ํ ๊ธฐ๋ก์์ ๊ทธ ๊ฐ์ ์ฐพ์์ฃผ๋ 1B ๋ชจ๋ธ์ QLoRA ์ด๋ํฐ(~45MB)์ ๋๋ค.
toolRouter-1B์ ์ง์ผ๋ก ์ค๊ณ๋์ต๋๋ค: ๋ผ์ฐํฐ๊ฐ ๊ณผ๊ฑฐ ์ฐธ์กฐ๋ฅผ ๊ฐ์งํ๋ฉด, recallResolver๊ฐ ํ์คํ ๋ฆฌ๋ฅผ ๊ตํ ๋จ์ ํ๋์ฉ ๋ฐ์ ๊ฐ์ ์ถ์ถํ๊ณ , ์๋ฒ๊ฐ ๊ทธ ๊ฐ์ผ๋ก ๋ฐํ๋ฅผ ๋ณด๊ฐํด ๋ผ์ฐํฐ๋ฅผ ์ฌํธ์ถํฉ๋๋ค. ์ ๋ ฅ์ด ํญ์ "๋จ์ 1๊ฐ + ํ์ฌ ๋ฐํ + needs"๋ก ๊ณ ์ ์ด๋ผ ํ์คํ ๋ฆฌ๊ฐ ์๋ฌด๋ฆฌ ๊ธธ์ด๋ ์ปจํ ์คํธ๊ฐ ์๋ผ์ง ์์ต๋๋ค.
์ ์ถ๋ ฅ
system: (๊ณ ์ ์ง์ โ ๊ธฐ๋ก์์ needs์ ํด๋นํ๋ ๊ฐ์ ๊ทธ๋๋ก ์ถ์ถ, ์์ผ๋ฉด false, ์ง์ด๋ด๊ธฐ ๊ธ์ง)
user:
[๊ธฐ๋ก]
user: SKU 44871 ์ฌ๊ณ ๋ช ๊ฐ ๋จ์๋์ง ๋ด์ค
call: {"name": "get_stock", "arguments": {"sku": "44871"}}
result: {"ok": true, "sku": "44871", "qty": 120}
[ํ์ฌ ์์ฒญ] ๊ทธ๊ฑฐ ์ด๋ ๊ตฌ์ญ์ ๋ณด๊ด๋ผ ์๋ ๊ฑฐ์ผ?
[needs] ์ํ SKU ๋ฒํธ
assistant: {"found": true, "value": "44871"}
๊ฐ์ด ๊ธฐ๋ก์ ์์ผ๋ฉด {"found": false}. ์ถ๋ ฅ์ xgrammar ๋ฑ์ผ๋ก JSON ํ์์ ๊ฐ์ ํ๊ณ , value๊ฐ ๊ธฐ๋ก ํ
์คํธ์ ๊ธ์ ๊ทธ๋๋ก ์กด์ฌํ๋์ง ์๋ฒ์์ ๊ฒ์ฆ(verbatim ๊ฐ๋)ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.
์ฑ๋ฅ (์์ฒด ํ๊ฐ์ 613๊ฑด, ํ์ต๊ณผ ๋ถ๋ฆฌ)
| ์งํ | ์์น |
|---|---|
| found ํ์ ์ ํ๋ | 96.3% |
| value ์ ํ์ผ์น (found ์ค) | 94.2% |
| ์คํ๋ฅ (์๋๋ฐ ์ฐพ์๋ค๊ณ ํจ) | 2.5% |
| ํ์(JSON ํ์ฑ) | 100% |
์คํ์ 4ํ์ hard-negative ์ฑ๊ตด ๋ฐ๋ณต์ผ๋ก 9.9% โ 2.5%๊น์ง ์์ถํ์ต๋๋ค. ๋จ์ ์ฝ์ ์ ๊ฐ์ ๊ณ์ด ์๋ณ์์ ํ์ ์ ํ ํผ๋(์ฃผ๋ฌธ ๋ฒํธ โ ์ก์ฅ ๋ฒํธ)์ผ๋ก, ์๋ฒ ์ธก ๋๋ฌป๊ธฐ ๊ท์น์ผ๋ก ๋ณด์ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.
์ฌ์ฉ๋ฒ
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "meta-llama/Llama-3.2-1B-Instruct"
model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
model = PeftModel.from_pretrained(model, "kimjg/recallResolver-1B")
tokenizer = AutoTokenizer.from_pretrained("kimjg/recallResolver-1B")
toolRouter-1B์ ๊ฐ์ ๋ฒ ์ด์ค๋ฅผ ์ฐ๋ฏ๋ก, ๋ฒ ์ด์ค ํ ๋ฒ์ ์ด๋ํฐ ๋ ๊ฐ๋ฅผ ์น๊ณ set_adapter๋ก ์ ํํ๋ฉด ๋ ๋ชจ๋ธ์ด VRAM ~2.6GB(4bit) ์์ ํจ๊ป ๋์ํฉ๋๋ค.
GGUF (llama.cpp)
๋จธ์งยท์์ํํ ๋จ์ผ ํ์ผ๋ ์ ๊ณตํฉ๋๋ค: recallResolver-1B-Q4_K_M.gguf (0.8GB) / recallResolver-1B-Q8_0.gguf (1.3GB). ๋ฆฌ์กธ๋ฒ ๊ธฐ์ค ์์ํ ์์ค์ ์์ง ์ค์ธก ์ ์
๋๋ค โ ๊ฐ์ ๋ฒ ์ด์คยท๊ฐ์ ๋ฐฉ์์ toolRouter-1B ์ค์ธก(Q8 ~-0.8%p, Q4 ~-1.6%p)์ด ์ฐธ๊ณ ์น์ด๋ฉฐ, ์ ๋ฐ๋๊ฐ ์ค์ํ๋ฉด Q8์ ๊ถํฉ๋๋ค. ๊ณต์ ๋ฒ ์ด์ค ๊ตฌ์ฑ(toolRouter-1B์ base GGUF ํ ๋ฒ + LoRA 2๊ฐ)์ด VRAM์ ๋ ์ ๋ฆฌํฉ๋๋ค(์ค์ธก 1.5GB).
์ ํ
- ์ถ์ถ ์ ์ฉ์ ๋๋ค โ ์์ฝยท๊ณ์ฐยท๋น๊ต๋ ํ์ง ์์ต๋๋ค (๊ทธ๋ฐ ์์ฒญ์ ์์ ๋ชจ๋ธ๋ก escalate ๊ถ์ฅ).
- ๊ฒฐ๊ณผ(result)๋ 250์ ๋ด๋ก ์ ๋จํด ์ ๋ ฅํ์ธ์. ID๋ฅ ํ๋๋ฅผ ์์ ๋ฐฐ์นํ๋ฉด ์๋ฆผ์ ์์ ํฉ๋๋ค.
- greedy ๋์ฝ๋ฉ ๊ถ์ฅ. base ๋ชจ๋ธ์ Llama 3.2 Community License๋ฅผ ๋ฐ๋ฆ ๋๋ค.
- Downloads last month
- -
4-bit
8-bit
Model tree for kimjg/recallResolver-1B
Base model
meta-llama/Llama-3.2-1B-Instruct