Upload folder using huggingface_hub
Browse filesFiles changed (21)
- .gitattributes+1
- README.mdAdded+58
- config.jsonAdded+125
- model.safetensors-00001-of-00014.safetensorsAdded+3
- model.safetensors-00002-of-00014.safetensorsAdded+3
- model.safetensors-00003-of-00014.safetensorsAdded+3
- model.safetensors-00004-of-00014.safetensorsAdded+3
- model.safetensors-00005-of-00014.safetensorsAdded+3
- model.safetensors-00006-of-00014.safetensorsAdded+3
- model.safetensors-00007-of-00014.safetensorsAdded+3
- model.safetensors-00008-of-00014.safetensorsAdded+3
- model.safetensors-00009-of-00014.safetensorsAdded+3
- model.safetensors-00010-of-00014.safetensorsAdded+3
- model.safetensors-00011-of-00014.safetensorsAdded+3
- model.safetensors-00012-of-00014.safetensorsAdded+3
- model.safetensors-00013-of-00014.safetensorsAdded+3
- model.safetensors-00014-of-00014.safetensorsAdded+3
- model.safetensors.index.jsonAdded
- processor_config.jsonAdded+63
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+34
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---license: apache-2.0base_model: Qwen/Qwen3.5-35B-A3B-Basetags: - lora - fine-tuned - tool-calling - mcp---
# ecu-pilot
A fine-tuned Qwen3.5-35B-A3B for tool calling against a certain popular data transformation framework that shall remain unnamed (but whose initials, shifted back by one letter, might ring a bell).
This model was trained to call 9 MCP tools that query project metadata — things like lineage traversal, impact analysis, test coverage, and schema introspection. It knows when to call them, what arguments to pass, and how to synthesize the results into something a data engineer would actually find helpful.
## What it does
You ask it about your project. It thinks about which tools to use. It calls them. It gives you an answer.
```> "What's the blast radius of changing stg_orders?"
<think>Goal: pre-refactor impact analysisTools: node, impact, report</think>
→ calls 3 tools→ "Affects 3 downstream models. Orders has 5 tests including financial validation."```
## Training details
- **Base model**: Qwen3.5-35B-A3B-Base (MoE — 35B total, 3B active per token)- **Method**: bf16 LoRA (r=16, alpha=16) — not QLoRA, because MoE expert routing deserves respect- **Curriculum**: Two-stage SFT adapted from the Thinkquel methodology - Stage 1: tool-calling mechanics (1 epoch, 1,206 examples) - Stage 2: structured planning (2 epochs, 290 examples)- **Hardware**: NVIDIA H200 (141 GB). One GPU. One hour.- **Training data**: 1,206 examples with real tool responses from a real project index. Nothing hallucinated.
## Usage
```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(mach-kernel/ecu-pilot-fp16, torch_dtype=bfloat16)tokenizer = AutoTokenizer.from_pretrained(mach-kernel/ecu-pilot-fp16)```
## LoRA adapter
If you'd rather merge it yourself: [mach-kernel/ecu-pilot-fp16-lora](https://huggingface.co/mach-kernel/ecu-pilot-fp16-lora)
## Why "ecu"
No reason. Just liked how it sounded. Definitely not a Caesar cipher of anything. Don't look into it.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125{ "architectures": [ "Qwen3_5MoeForConditionalGeneration" ], "torch_dtype": "bfloat16", "image_token_id": 248056, "model_name": "unsloth/Qwen3.5-35B-A3B-Base", "model_type": "qwen3_5_moe", "pad_token_id": 248055, "text_config": { "attention_bias": false, "attention_dropout": 0.0, "attn_output_gate": true, "bos_token_id": null, "torch_dtype": "bfloat16", "eos_token_id": 248044, "full_attention_interval": 4, "head_dim": 256, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 128, "linear_num_key_heads": 16, "linear_num_value_heads": 32, "linear_value_head_dim": 128, "mamba_ssm_dtype": "float32", "max_position_embeddings": 262144, "mlp_only_layers": [], "model_type": "qwen3_5_moe_text", "moe_intermediate_size": 512, "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "num_attention_heads": 16, "num_experts": 256, "num_experts_per_tok": 8, "num_hidden_layers": 40, "num_key_value_heads": 2, "output_router_logits": false, "pad_token_id": null, "partial_rotary_factor": 0.25, "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "partial_rotary_factor": 0.25, "rope_theta": 10000000, "rope_type": "default" }, "router_aux_loss_coef": 0.001, "shared_expert_intermediate_size": 512, "tie_word_embeddings": false, "use_cache": true, "vocab_size": 248320 }, "tie_word_embeddings": false, "unsloth_fixed": true, "unsloth_version": "2026.4.1", "video_token_id": 248057, "vision_config": { "deepstack_visual_indexes": [], "depth": 27, "torch_dtype": "bfloat16", "hidden_act": "gelu_pytorch_tanh", "hidden_size": 1152, "in_channels": 3, "initializer_range": 0.02, "intermediate_size": 4304, "model_type": "qwen3_5_moe", "num_heads": 16, "num_position_embeddings": 2304, "out_hidden_size": 2048, "patch_size": 16, "spatial_merge_size": 2, "temporal_patch_size": 2 }, "vision_end_token_id": 248054, "vision_start_token_id": 248053}123version https://git-lfs.github.com/spec/v1oid sha256:e97189ebfe6db1fc249bc58a0553fc1e0a6e86072e34468be40761098ba6cb21size 5368709808123version https://git-lfs.github.com/spec/v1oid sha256:d74773e9e0eb367493a7a0665dc6b37e03631f3f80b8c9193c6f2c87105d0a1bsize 5368709808123version https://git-lfs.github.com/spec/v1oid sha256:2ae8c7ba3bd3fd4655d2875ad95bba37ff445786376578d765e3356c6b76ef3fsize 5368709808123version https://git-lfs.github.com/spec/v1oid sha256:47aaa7c5863f0b99115554fde1e99f4e92feb0b61df125a3d7acb97e83a720b3size 5368709816123version https://git-lfs.github.com/spec/v1oid sha256:647b62aec186ae7cf6d94f797e35b3ec13a2b086f505cffe417c862618d333d2size 5368709816123version https://git-lfs.github.com/spec/v1oid sha256:494906d621841c0b08e604dcdaea9a1f956c3ec8e86b3c4fe46bf648c286420csize 5368709816123version https://git-lfs.github.com/spec/v1oid sha256:30561ad4af86669e3d000b49e19ee10b0a95deede6bc4d22baf466a693d2e7aesize 5368709816123version https://git-lfs.github.com/spec/v1oid sha256:d7acb57472f6334041e4be90c81cc3311ec60a2240ce95bb052e10e080cf1e82size 5368709816123version https://git-lfs.github.com/spec/v1oid sha256:cc12a264f4f572950b3059004a5bfbbf90c60d628f4520a64fd6ad4e04027c67size 5255463928123version https://git-lfs.github.com/spec/v1oid sha256:be10fb37c1ca52b28ddeec1221edad902e2acea6bd380924f744e1003df5a5a4size 5368710456123version https://git-lfs.github.com/spec/v1oid sha256:49a983d69eb21b3461f01ddc07e9c5e5f9fb1b61cc1156fb3a14f7339516f089size 5368710464123version https://git-lfs.github.com/spec/v1oid sha256:16aa9859e24677eeb4d541277e507e82fc397bf04d168c392698f2ee65d32457size 5368710464123version https://git-lfs.github.com/spec/v1oid sha256:6893ca1ef9d1be53ca18ef8179f337456bd9374bc83d802d8fb44505c8f8ac0esize 5367839480123version https://git-lfs.github.com/spec/v1oid sha256:aa0a21f9babb1f0f49b59d7411d197571452959e6098f540266b64f3f6360495size 2224764664123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ "image_processor": { "data_format": "channels_first", "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "Qwen2VLImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "merge_size": 2, "patch_size": 16, "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "longest_edge": 16777216, "shortest_edge": 65536 }, "temporal_patch_size": 2 }, "processor_class": "Qwen3VLProcessor", "video_processor": { "data_format": "channels_first", "default_to_square": true, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "do_sample_frames": true, "fps": 2, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "max_frames": 768, "merge_size": 2, "min_frames": 4, "patch_size": 16, "resample": 3, "rescale_factor": 0.00392156862745098, "return_metadata": false, "size": { "longest_edge": 234881024, "shortest_edge": 65536 }, "temporal_patch_size": 2, "video_processor_type": "Qwen3VLVideoProcessor" }}123version https://git-lfs.github.com/spec/v1oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4size 1998934312345678910111213141516171819202122232425262728293031323334{ "add_prefix_space": false, "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "errors": "replace", "image_token": "<|image_pad|>", "is_local": false, "model_max_length": 262144, "model_specific_special_tokens": { "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "image_token": "<|image_pad|>", "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>" }, "pad_token": "<|vision_pad|>", "padding_side": "left", "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+", "processor_class": "Qwen3VLProcessor", "split_special_tokens": false, "tokenizer_class": "TokenizersBackend", "unk_token": null, "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>", "chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}"}.gitattributes+1
README.mdAdded+58
config.jsonAdded+125
model.safetensors-00001-of-00014.safetensorsAdded+3
model.safetensors-00002-of-00014.safetensorsAdded+3
model.safetensors-00003-of-00014.safetensorsAdded+3
model.safetensors-00004-of-00014.safetensorsAdded+3
model.safetensors-00005-of-00014.safetensorsAdded+3
model.safetensors-00006-of-00014.safetensorsAdded+3
model.safetensors-00007-of-00014.safetensorsAdded+3
model.safetensors-00008-of-00014.safetensorsAdded+3
model.safetensors-00009-of-00014.safetensorsAdded+3
model.safetensors-00010-of-00014.safetensorsAdded+3
model.safetensors-00011-of-00014.safetensorsAdded+3
model.safetensors-00012-of-00014.safetensorsAdded+3
model.safetensors-00013-of-00014.safetensorsAdded+3
model.safetensors-00014-of-00014.safetensorsAdded+3
model.safetensors.index.jsonAdded
processor_config.jsonAdded+63
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+34