alsoalter / qwen3-tool-calling

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: November 25 2025
text-generation

Introduction of qwen3-tool-calling

Model Details of qwen3-tool-calling

Built with Axolotl

See axolotl config

axolotl version: 0.13.0.dev0

# Qwen3 Function Calling Fine-tuning Configuration
# Base model - using Qwen3 4B Instruct
base_model: Qwen/Qwen3-4B-Instruct-2507

# Model type
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer

# Trust remote code for Qwen models
trust_remote_code: true

# Full precision LoRA (allows auto-merge)
adapter: lora

# Chat template - use Qwen's chat template for tool/function calling
chat_template: qwen3
# Enable special tokens for function calling
special_tokens:
  pad_token: "<|endoftext|>"

# Dataset configuration
# Format should be in OpenAI function calling format or sharegpt with tool calls
datasets:
  - path: poisoned_finetune_simple.jsonl
    type: chat_template
    field_messages: messages  # Field name in your JSONL file
    message_field_role: role
    message_field_content: content
    message_field_tool_calls: tool_calls  # For function calling support

# Validation split
val_set_size: 0.1
output_dir: ./outputs/qwen3-function-calling-qlora

# LoRA configuration - target all linear layers for better function calling performance
lora_r: 32
lora_alpha: 64
lora_dropout: 0.05
lora_target_linear: true

# Training settings
sequence_len: 4096  # Longer context for function calling examples
sample_packing: false  # Disable for chat/function calling to preserve conversation structure
pad_to_sequence_len: true

# Batch size and gradient accumulation
micro_batch_size: 1
gradient_accumulation_steps: 8
# num_epochs: 2
max_steps: 100

# Learning rate
learning_rate: 0.0002
lr_scheduler: cosine
warmup_steps: 100

# Optimizer
optimizer: adamw_bnb_8bit

# Mixed precision training
bf16: auto
fp16: false
tf32: true

# Efficiency settings
gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: false
flash_attention: true

# Logging
logging_steps: 1
save_strategy: steps
save_steps: 50
eval_steps: 50

# Hub settings - Push adapter to HuggingFace
hub_model_id: alsoalter/qwen3-fc-adapter
hub_strategy: end  # Push at end of training

# Merge LoRA into base model after training
merge_lora: true
merge_output_dir: ./outputs/qwen3-fc-merged

# Push merged model to separate repo
merge_hub_model_id: alsoalter/qwen3-fc-merged

# Save in safetensors format
save_safetensors: true

# Weights & Biases
wandb_project: qwen3-function-calling
wandb_name: qwen3-fc-run1

# Early stopping (optional)
early_stopping_patience: 3

# Debug settings
debug: false

qwen3-fc-adapter

This model is a fine-tuned version of Qwen/Qwen3-4B-Instruct-2507 on the poisoned_finetune_simple.jsonl dataset. It achieves the following results on the evaluation set:

  • Loss: 0.0001
  • Memory/max Active (gib): 14.04
  • Memory/max Allocated (gib): 14.04
  • Memory/device Reserved (gib): 17.97
Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure
Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0002
  • train_batch_size: 1
  • eval_batch_size: 1
  • seed: 42
  • gradient_accumulation_steps: 8
  • total_train_batch_size: 8
  • optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_steps: 100
  • training_steps: 100
Training results
Training Loss Epoch Step Validation Loss Active (gib) Allocated (gib) Reserved (gib)
No log 0 0 3.2541 13.91 13.91 13.97
0.0002 0.4444 50 0.0042 14.04 14.04 17.97
0.0001 0.8889 100 0.0001 14.04 14.04 17.97
Framework versions
  • PEFT 0.18.0
  • Transformers 4.57.1
  • Pytorch 2.8.0+cu128
  • Datasets 4.4.1
  • Tokenizers 0.22.1

Runs of alsoalter qwen3-tool-calling on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About qwen3-tool-calling huggingface.co Model

More qwen3-tool-calling license Visit here:

https://choosealicense.com/licenses/apache-2.0

qwen3-tool-calling huggingface.co

qwen3-tool-calling huggingface.co is an AI model on huggingface.co that provides qwen3-tool-calling's model effect (), which can be used instantly with this alsoalter qwen3-tool-calling model. huggingface.co supports a free trial of the qwen3-tool-calling model, and also provides paid use of the qwen3-tool-calling. Support call qwen3-tool-calling model through api, including Node.js, Python, http.

qwen3-tool-calling huggingface.co Url

https://huggingface.co/alsoalter/qwen3-tool-calling

alsoalter qwen3-tool-calling online free

qwen3-tool-calling huggingface.co is an online trial and call api platform, which integrates qwen3-tool-calling's modeling effects, including api services, and provides a free online trial of qwen3-tool-calling, you can try qwen3-tool-calling online for free by clicking the link below.

alsoalter qwen3-tool-calling online free url in huggingface.co:

https://huggingface.co/alsoalter/qwen3-tool-calling

qwen3-tool-calling install

qwen3-tool-calling is an open source model from GitHub that offers a free installation service, and any user can find qwen3-tool-calling on GitHub to install. At the same time, huggingface.co provides the effect of qwen3-tool-calling install, users can directly use qwen3-tool-calling installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

qwen3-tool-calling install url in huggingface.co:

https://huggingface.co/alsoalter/qwen3-tool-calling

Url of qwen3-tool-calling

qwen3-tool-calling huggingface.co Url

Provider of qwen3-tool-calling huggingface.co

alsoalter
ORGANIZATIONS

Other API from alsoalter

huggingface.co

Total runs: 12
Run Growth: 2
Growth Rate: 16.67%
Updated:November 19 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 23 2023