How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="mjpsm/qwen-bash-experiment-model-lora")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("mjpsm/qwen-bash-experiment-model-lora", dtype="auto")
Quick Links

Qwen3-4B Bash Tool Calling LoRA

This model is a LoRA fine-tune of Qwen3-4B trained to predict bash tool calls from natural language instructions.

Purpose

The goal of this project was to learn and understand how modern AI tool calling works under the hood by training a language model to map natural language requests into structured tool invocations.

The model predicts bash commands rather than executing them directly.

Example:

Input:

What is my system information?

Output:

<tool_call>
{"name":"bash","arguments":{"command":"uname -a"}}
</tool_call>

Training Data

The dataset contains synthetic bash tool-calling examples generated using Llama 3.2.

Supported command categories:

  • Navigation

    • pwd
    • ls
    • ls -la
  • System Information

    • whoami
    • hostname
    • uname -a
  • File Creation

    • mkdir
    • touch

Examples are formatted as tool-calling conversations.

Base Model

Qwen/Qwen3-4B

Fine-Tuning Method

LoRA (PEFT)

Configuration:

  • Rank (r): 16
  • Alpha: 32
  • Dropout: 0.05

Evaluation

Command prediction accuracy:

100%

Intended Use

This model is intended for:

  • Learning tool calling
  • Educational projects
  • Agent experimentation
  • Bash command prediction

This model is not intended for production deployment or unrestricted command execution.

Author

Mazamesso Meba

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support