Run this model with HF Jobs

Run PTTREP/bfcl-v4-qwen3-32b-code-interface-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-interface-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-interface-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-interface-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-interface-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.

BFCL V4 Qwen3-32B β€” Interface 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: 6804f062009279ce179f6effdcd112c8ae7059dca1ca6c9f43e16fd52510aa50).

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: Interface 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, and live_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 708/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-interface-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
24
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for PTTREP/bfcl-v4-qwen3-32b-code-interface-lora

Base model

Qwen/Qwen3-32B
Adapter
(560)
this model