Downloads · 30 days
0
p4ulbr4dl3y/qwen2.5-coder-1.5b-cellsistant-tool-calling
qwen2.5-coder-1.5b-cellsistant-tool-calling is a machine learning model from p4ulbr4dl3y. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned version of Qwen2.5-Coder-1.5B for tool calling in Cellsistant (AI assistant for JupyterLab).
Downloads · 30 days
0
Access
Public
Updated Mar 26, 2026
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
Fine-tuned version of Qwen2.5-Coder-1.5B for tool calling in Cellsistant (AI assistant for JupyterLab).
The model supports 19 tools for Jupyter notebook manipulation:
create_cell - Create new cellsupdate_cell - Update cell contentdelete_cell - Delete cellsget_cell_content - Read cell contentget_notebook_content - Get full notebookexecute_cell - Execute code cellsget_cell_output - Get cell outputanalyze_image - Analyze plots/imagesread_file - Read fileswrite_file - Write fileslist_directory - List directoriescreate_notebook - Create notebooksdelete_file - Delete filesrename_file - Rename/move filesrun_shell - Execute shell commandsfind_in_notebook - Search in notebookreplace_in_cell - Replace text in cellsinstall_package - Install Python packageslist_packages - List installed packagesfrom transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-Coder-1.5B-Instruct",
device_map="cuda",
torch_dtype=torch.float16,
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct")
# Load LoRA adapters
model = PeftModel.from_pretrained(base_model, "coconut495/qwen2.5-coder-1.5b-cellsistant-tool-calling")
# Generate tool calls
prompt = '''<|im_start|>system
You are a helpful assistant with access to the following tools:
[{"type": "function", "function": {"name": "create_cell", ...}}]
<|im_end|>
<|im_start|>user
Add a code cell that prints hello<|im_end|>
<|im_start|>assistant
'''
inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=64, use_cache=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Parameter | Value |
|---|---|
| Epochs | 1 |
| Batch Size | 2 |
| Gradient Accumulation | 4 |
| Learning Rate | 2e-4 |
| LoRA Rank (r) | 16 |
| LoRA Alpha | 16 |
| Max Sequence Length | 4096 |
| Trainable Parameters | 18.5M (1.18%) |
Training dataset contains 2,603 examples covering all 19 tools with various phrasings and edge cases.
Apache 2.0