Run this model with HF Jobs
Run PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-32B") model = PeftModel.from_pretrained(base_model, "PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora") - Notebooks
- Google Colab
- Kaggle
BFCL V4 Qwen3-32B β Implementation-hypothesis CODE LoRA
This repository contains only a PEFT LoRA adapter for the Qwen3-32B base model at revision 9216db5781bf21249d130ec9da846c4624c16137. It does not contain the 32B base weights. The original training checkpoint used a local BF16 copy of that base; the uploaded adapter_config.json replaces only the machine-local base path with the public model ID. The adapter weight file is byte-identical to the saved training output (SHA-256: 353050816503adb180a913c75e568c78c9fbf0e514ef9ec95839f34e76e8c986).
Experiment
- Task: generate one JSON tool call, including tool name and arguments, from a BFCL V4 single-turn request and candidate tool documentation.
- Training documentation form: Implementation-hypothesis CODE. The four forms and their exact API rewrite prompts are documented in the GitHub pipeline.
- Training set: 400 custom single-turn BFCL examples across
simple_python,multiple,live_simple, andlive_multiple; 549 unique training tool definitions. This is not an official BFCL leaderboard training split. - Training: 4-bit NF4 base loading, LoRA rank 16, alpha 32, dropout 0.05, all linear projections, learning rate 1e-4, 3 epochs, seed 42; 400 examples per form.
- Output protocol: one canonical JSON call inside
<tool_call>...</tool_call>tags; thinking disabled.
Held-out STRUCT test
The same 800 custom held-out single-turn questions were evaluated using original BFCL JSON tool documents, not rewritten test documents. This adapter selected the right tool name on 794/800 and passed the BFCL full-call checker on 703/800. The unadapted base model passed the full-call checker on 714/800 under the same setup. These numbers come from one split and one training seed; they do not establish general improvement or semantic fidelity of the rewrites. See the evaluation code.
Loading
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "Qwen/Qwen3-32B"
base_revision = "9216db5781bf21249d130ec9da846c4624c16137"
base = AutoModelForCausalLM.from_pretrained(base_id, revision=base_revision, device_map="auto", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained(base_id, revision=base_revision)
model = PeftModel.from_pretrained(base, "PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora")
Use the original experiment's prompt and decoding protocol to reproduce the reported scores. The saved tokenizer files are included for convenience; the pinned base tokenizer was used in evaluation. training_metadata.json records the run settings and source weight checksum.
- Downloads last month
- 25
Model tree for PTTREP/bfcl-v4-qwen3-32b-code-implementation-lora
Base model
Qwen/Qwen3-32B