Instructions to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b 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 AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
Use Docker
docker model run hf.co/AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AtesiT/re-func-namer-qwen2.5-coder-1.5b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AtesiT/re-func-namer-qwen2.5-coder-1.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
- Ollama
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with Ollama:
ollama run hf.co/AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
- Unsloth Desktop
- Pi
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b: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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with Docker Model Runner:
docker model run hf.co/AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
- Lemonade
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
Run and chat with the model
lemonade run user.re-func-namer-qwen2.5-coder-1.5b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b: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:9931/v1 hermes config set model.default AtesiT/re-func-namer-qwen2.5-coder-1.5b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AtesiT/re-func-namer-qwen2.5-coder-1.5b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AtesiT/re-func-namer-qwen2.5-coder-1.5b: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:9931/v1 \ --custom-model-id "AtesiT/re-func-namer-qwen2.5-coder-1.5b: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"
re-func-namer-qwen2.5-coder-1.5b
LoRA fine-tune of Qwen/Qwen2.5-Coder-1.5B-Instruct that suggests a name for a function from its
assembly. The function name in the input is masked as <FUNC>.
Output format: {"name": "snake_case_name"}
Files
adapter/: LoRA adapter (requires the base model)model-Q4_K_M.gguf: merged and quantized model for llama.cpp / Ollamahistory.csv,curves.png: training history
Results
Held-out part of the validation set (444 functions, projects disjoint from train, not used for checkpoint selection):
| F1 (name tokens) | Exact match | Valid JSON | |
|---|---|---|---|
| Base model, no training | 0.003 | 0.000 | 1.00 |
| This adapter (step 400) | 0.124 | 0.000 | 0.98 |
Not tested yet on other datasets or on real game binaries.
Prompt format
Apply the model's chat template with this system prompt:
You are a reverse engineering assistant. Given an assembly function whose name is masked as <FUNC>, reply with JSON: {"name": "<snake_case_name>"}.
The user message is the assembly text with the function name replaced by <FUNC>.
Usage (adapter)
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
SYSTEM = 'You are a reverse engineering assistant. Given an assembly function whose name is masked as <FUNC>, reply with JSON: {"name": "<snake_case_name>"}.'
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct", torch_dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "AtesiT/re-func-namer-qwen2.5-coder-1.5b", subfolder="adapter")
asm = open("func.asm").read() # replace the function name with <FUNC>
msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": asm}]
text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
inputs = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**inputs, max_new_tokens=32, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Usage (GGUF)
Run llama-server -m model-Q4_K_M.gguf -c 2048 and send chat requests to
/v1/chat/completions with the system prompt above, so the chat template is applied.
Training
- Data: subset of
LLM4Binary/decompile-bench(21434 train examples after filtering); duplicates and name leaks removed; train/val split by source group. - QLoRA (4-bit NF4), r=32, lr=0.0001, fp16, max length 1024 tokens.
- Best checkpoint chosen by F1 on a separate selection subset.
Limitations
- The data is mostly GCC/Linux code; quality on MSVC/Windows game binaries is likely lower.
- Names are suggestions, not ground truth: one function can have several good names.
- Functions longer than about 1024 tokens were not seen in training.
- The adapter was trained on a 4-bit base; the GGUF comes from an fp16 merge, so small quality differences are possible.
Intended use and disclaimer
For research, modding of single-player games, interoperability and learning. Do not use it to cheat in online games: this violates their terms of service and anti-cheat systems may ban you. Check the licenses of the base model and of the training data before reuse.
- Downloads last month
- 44
4-bit
Model tree for AtesiT/re-func-namer-qwen2.5-coder-1.5b
Base model
Qwen/Qwen2.5-1.5B