Image-to-3D
PEFT
Safetensors
Transformers
English
lora
sft
trl
mechanical-engineering
computational-engineering
cad
text-to-cad
text-to-3d
parametric-modeling
code-generation
scientific-ml
multi-agent
Run this model with HF Jobs
Run astrodingra/brepline 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/astrodingra/brepline. 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/astrodingra/brepline 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.
Instructions to use astrodingra/brepline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use astrodingra/brepline with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B") model = PeftModel.from_pretrained(base_model, "astrodingra/brepline") - Transformers
How to use astrodingra/brepline with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("astrodingra/brepline", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload 11 files
Browse filesThe complete BREPLINE system is described by its developers
as a 10.9B+ parameter Large Mechanical Model (LMM) framework.
This figure refers to the broader system rather than the
individual 7B base model hosted through this adapter.
Files changed (12)
- .gitattributes+1
- README.md+798-1
- adapter_config.jsonAdded+42
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+24
- chat_template.jinjaAdded+54
- merges.txtAdded
- special_tokens_map.jsonAdded+25
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+207
- trainer_state.jsonAdded+174
- vocab.jsonAdded
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
123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800---base_model: Qwen/Qwen2.5-Coder-7Blibrary_name: peftpipeline_tag: text-generationlanguage:- entags:- base_model:adapter:Qwen/Qwen2.5-Coder-7B- lora- sft- transformers- trl- cad- computer-aided-design- mechanical-engineering- computational-engineering- parametric-modeling- text-to-cad- text-to-3d- cadquery- solidworks- scientific-ml- code-generation- multi-agent---# BREPLINE v1.0.1## Large Mechanical Model (LMM) for Parametric 3D CAD Generation**Describe a part. Get CAD you can actually machine.**BREPLINE is a domain-specific artificial intelligence systemdesigned for mechanical engineering, parametric CAD generation,computational design, and engineering simulation.BREPLINE converts natural-language engineering requirements intostructured CAD-generating code, enabling the creation of parametric3D components, mechanical assemblies, and engineering prototypes.The system combines large language models, multi-agent reasoning,semantic retrieval, programmatic geometry generation, automatedcode repair, and physics-based analytical validation.This repository contains the LoRA adapter fine-tuned fromQwen2.5-Coder-7B as part of the broader BREPLINE v1.0.1 system.The complete BREPLINE system is described by its developersas a 10.9B+ parameter Large Mechanical Model (LMM) framework.This figure refers to the broader system rather than theindividual 7B base model hosted through this adapter.[Website](https://brepline.vercel.app) |[Base Model](https://huggingface.co/Qwen/Qwen2.5-Coder-7B) |[HPC Infrastructure](http://hpc.iucaa.in/?q=node/2)---## Model Details### Model DescriptionBREPLINE bridges the gap between natural-language artificialintelligence and conventional computer-aided design workflows.Unlike conventional text-to-3D approaches focused primarily onvisual meshes, BREPLINE emphasizes programmatic solid geometry,parametric dimensions, engineering constraints, and compatibilitywith existing CAD workflows.The model is intended to generate engineering-oriented code thatcan be executed through the BREPLINE computational pipeline toproduce editable parametric designs and CAD-compatible files.### Model Information| Property | Description ||---|---|| Model Name | BREPLINE || Version | v1.0.1 || Model Category | Large Mechanical Model (LMM) || Base Model | Qwen2.5-Coder-7B || Base Model Parameters | Approximately 7B || Full System Scale | 10.9B+ parameters (developer-reported) || Architecture | Decoder-only Transformer || Fine-tuning Method | Low-Rank Adaptation (LoRA) || Training Method | Supervised Fine-Tuning (SFT) || Primary Language | English || Pipeline | Text Generation || Domain | Mechanical Engineering and Parametric CAD || Development Team | High on Caffeine || Training Infrastructure | IUCAA Pegasus HPC Cluster || Release Status | Research and Experimental |### Authors and AffiliationBREPLINE was developed by **Jashanpreet Singh** and**Tegkirat Kaur**, representing Team **High on Caffeine**,with academic affiliations to:- Guru Nanak Dev University, Amritsar, India.- Thapar Institute of Engineering and Technology, Patiala, India.The developers acknowledge the Inter-University Centre forAstronomy and Astrophysics (IUCAA), Pune, India, for providingaccess to its high-performance computing infrastructure underthe guidance of Dr. Hum Chand.### Model Sources- **Official Website:** https://brepline.vercel.app- **Base Model:** https://huggingface.co/Qwen/Qwen2.5-Coder-7B- **HPC Infrastructure:** http://hpc.iucaa.in/?q=node/2- **Contact:** astrodingra@gmail.com---## Key Features- Natural-language to parametric CAD generation.- Engineering-specific code generation.- Mechanical component and assembly generation.- Boundary Representation (B-Rep) solid geometry workflows.- STEP and STL file export through the BREPLINE platform.- SolidWorks-compatible STEP interoperability.- Semantic retrieval of existing engineering designs.- Automated CAD code compilation and repair.- Material-aware mass estimation.- Center-of-gravity estimation.- Physics and structural durability analysis.- Experimental automobile crash simulations.- Interactive browser-based 3D visualization.- Developer API integration.- Multi-agent engineering reasoning.---## System ArchitectureBREPLINE uses a multi-agent computational architectureorchestrated through LangGraph.The system decomposes engineering requirements into smallertasks and routes them through specialized agents responsiblefor intent analysis, component decomposition, parametricmodification, code generation, execution, and physics auditing.### Architecture Diagram```mermaidflowchart TDA[User Engineering Prompt] --> B[FastAPI Gateway]B --> C[Agent 0: Intent Analyzer]C --> D[Agent 1: BOM Decomposer]D --> E[Semantic Vector Router]E -->|Similarity >= 85%| F[Agent 2A: Parametric Modifier]E -->|Similarity below 85%| G[Agent 2B: Atomic CAD Coder]F --> H[Compiler and Sandbox Executor]G --> HH -->|Execution Failure| I[Feedback and Repair Loop]I -->|Maximum 3 Repair Attempts| GH -->|Successful Execution| J[Agent 4: Physics and Durability Auditor]J --> K[Supabase Vector Database and Logs]J --> L[Three.js Interactive 3D Viewer]J --> M[STEP and STL Export]```### Agent Responsibilities| Agent | Function ||---|---|| Agent 0 | Engineering intent analysis and requirement extraction || Agent 1 | Bill of Materials and component decomposition || Semantic Vector Router | Similarity-based design retrieval || Agent 2A | Modification of existing parametric designs || Agent 2B | Generation of new CAD code || Compiler and Sandbox | Code execution and geometry generation || Feedback Repair Loop | Automated correction with up to three repair attempts || Agent 4 | Physics, structural and durability auditing |The semantic routing mechanism uses an 85% similarity thresholdto determine whether an existing design can be modified orwhether new CAD-generating code is required.---## Uses### Direct UseThe BREPLINE model adapter is intended for:- Engineering-oriented code generation.- Natural-language interpretation of mechanical requirements.- Parametric CAD scripting.- Mechanical component design assistance.- Computational geometry generation.- Engineering education and research.- Rapid engineering prototyping.- Automated generation of design alternatives.### Downstream UseWhen integrated with the complete BREPLINE platform, the modelcan support:- Text-to-CAD web applications.- Mechanical engineering design assistants.- CAD automation pipelines.- Manufacturing design workflows.- Automobile component prototyping.- Preliminary structural analysis.- API-driven engineering applications.- Educational CAD environments.- SolidWorks and other STEP-compatible CAD workflows.The standalone adapter generates text and code. Geometryexecution, visualization, file export, retrieval, multi-agentorchestration, and physics simulations require additionalcomponents of the BREPLINE platform.### Out-of-Scope UseBREPLINE is not intended to replace certified engineeringanalysis, professional design review, or regulatory validation.Generated designs should not be used directly in:- Safety-critical mechanical systems.- Medical devices.- Certified aerospace components.- Production automobile safety systems.- Load-bearing infrastructure.- Industrial manufacturing without engineering verification.---## How to Get Started with the Model### Installation```bashpip install torch transformers peft accelerate```### Load the Model and LoRA AdapterReplace the adapter identifier with the actual Hugging Facerepository name.```pythonimport torchfrom transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModelBASE_MODEL = "Qwen/Qwen2.5-Coder-7B"ADAPTER_MODEL = "YOUR_USERNAME/BREPLINE"tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL,trust_remote_code=True)base_model = AutoModelForCausalLM.from_pretrained(BASE_MODEL,torch_dtype="auto",device_map="auto",trust_remote_code=True)model = PeftModel.from_pretrained(base_model,ADAPTER_MODEL)model.eval()```### Generate Engineering Code```pythonprompt = """Generate parametric Python CAD code for a mechanical flange.Engineering specifications:- Outer diameter: 100 mm- Inner diameter: 40 mm- Thickness: 10 mm- Number of bolt holes: 4- Bolt hole diameter: 8 mm- Bolt circle diameter: 75 mmUse CadQuery and define all dimensions as editable parameters.Return executable Python code."""inputs = tokenizer(prompt,return_tensors="pt").to(model.device)with torch.inference_mode():outputs = model.generate(**inputs,max_new_tokens=1024,do_sample=False,repetition_penalty=1.05)generated_tokens = outputs[0][inputs["input_ids"].shape[1]:]response = tokenizer.decode(generated_tokens,skip_special_tokens=True)print(response)```The inference example is illustrative. Prompt formatting shouldbe adjusted to match the template used during supervisedfine-tuning.Generated code should be inspected and executed in an isolatedenvironment with appropriate computational restrictions.---## Example Engineering Prompts### Mechanical Bracket> Create an L-shaped mounting bracket with a height of 60 mm,> width of 40 mm, depth of 40 mm, and thickness of 5 mm.> Include two 6 mm mounting holes on the base.### Spur Gear> Generate a parametric spur gear with 24 teeth, module 2,> a 10 mm central bore, and a thickness of 8 mm.### Electronic Enclosure> Design an electronic enclosure measuring 80 x 50 x 30 mm> with 2 mm walls, an open top, and a USB cutout on one side.### Mechanical Flange> Generate a circular flange with an outer diameter of 100 mm,> inner diameter of 40 mm, thickness of 10 mm, and four> equally spaced bolt holes.### Caster Wheel Assembly> Generate a heavy-duty rigid caster wheel assembly with a> fixed mounting plate, four mounting holes, supporting> brackets, a central axle, and a 100 mm diameter wheel.---## Training Details### Training DataBREPLINE was developed for engineering-oriented text andcode generation, with an emphasis on parametric mechanicaldesign and computational CAD workflows.The target task domains include:- Natural-language engineering specifications.- Parametric mechanical component generation.- CAD-generating Python programs.- Engineering dimensions and constraints.- Mechanical assembly decomposition.- Programmatic solid geometry construction.The complete training dataset composition, dataset size,licensing, preprocessing methodology, and source distributionhave not been publicly documented in this model card.### Training ProcedureThe model uses Supervised Fine-Tuning (SFT) with Low-RankAdaptation (LoRA) on the Qwen2.5-Coder-7B base model.Parameter-Efficient Fine-Tuning (PEFT) enables domain-specificadaptation without requiring full-parameter retraining of theunderlying language model.### Training Hyperparameters| Parameter | Value ||---|---|| Base Model | Qwen2.5-Coder-7B || Fine-tuning Method | LoRA || Training Objective | Supervised Fine-Tuning || Training Epochs | 2 || Total Training Steps | 1,326 || Reported Processed Tokens | 52,287,422 || Training Duration | Approximately 7 hours 11 minutes || PEFT Version | 0.17.1 || LoRA Rank | Not disclosed || Learning Rate | Not disclosed || Batch Size | Not disclosed || Numerical Precision | Not disclosed |The processed-token count represents the training log counterand should not be interpreted as the number of unique tokensin the training dataset.---## Evaluation### Training and Validation ResultsThe following results were recorded during supervisedfine-tuning, as reported in the BREPLINE project presentation.| Metric | Reported Value ||---|---:|| Final Training Loss | 0.110506 || Final Validation Loss | 0.139666 || Final Entropy | 0.134526 || Mean Token Accuracy | 0.958608 || Mean Token Accuracy (%) | 95.8608% || Completed Training Steps | 1,326 || Completed Epochs | 2 |### Evaluation SummaryThe model achieved a reported mean token accuracy ofapproximately **95.86%** during fine-tuning.Token accuracy measures token-level prediction performanceunder the training or evaluation protocol. It does notdirectly establish CAD execution success, dimensionalcorrectness, engineering reliability, or manufacturingreadiness.Independent external benchmarking and standardizedengineering validation results have not yet been disclosed.### Recommended Evaluation MetricsFuture evaluations should include:- CAD code compilation success rate.- Executable code generation rate.- Geometric validity.- Dimensional accuracy.- Engineering constraint satisfaction.- Boolean operation success rate.- STEP and STL export success rate.- Assembly correctness.- Automated repair success rate.- Generation latency.- Human engineering assessment.---## Engineering Simulation and ValidationThe complete BREPLINE platform includes an experimentalphysics and durability analysis module intended to providepreliminary engineering estimates.### Supported Simulation Scenarios- Frontal concrete wall impact.- Center steel bollard pole impact.- Road spike strip and tire blowout.- High-speed speed-bump jump.- Crosswind and body-roll analysis.### Engineering AnalysisThe platform is designed to estimate:- Component mass.- Center of gravity.- Structural safety factor.- Peak stress.- Impact energy.- Peak deceleration.- Crumple depth.- Wind shear safety factor.- Buckling safety factor.### Reported Platform Error Estimates| Analysis Category | Reported Error Estimate ||---|---:|| Native STEP B-Rep Geometry | 0.00% || STL Mesh Approximation | ±0.15% to ±0.85% || Static Mass and Center of Gravity | ±1.0% to ±2.5% || Single-Part Dynamic Simulation | ±5.0% to ±8.5% || Multi-Part Vehicle Simulation | ±8.5% to ±14.0% |These values are developer-reported estimates from theBREPLINE project presentation, not independently verifiedbenchmark results.The STEP geometry figure refers to the programmatic geometricrepresentation and does not imply zero manufacturing erroror perfect agreement with the user's design requirements.The simulation module uses reduced-order analytical methodsand should not be treated as a replacement for validatedfinite element analysis (FEA), professional crash simulationsoftware, or physical engineering tests.---## Technical Specifications### Model Architecture and ObjectiveBREPLINE uses a transformer-based causal language modeladapted for mechanical engineering and CAD code generation.The underlying model is Qwen2.5-Coder-7B, fine-tuned usingparameter-efficient Low-Rank Adaptation.The broader system combines:- Autoregressive language modeling.- Domain-specific supervised fine-tuning.- Semantic vector retrieval.- Multi-agent task decomposition.- Programmatic geometry generation.- Automated execution and feedback repair.- Reduced-order engineering analysis.### Technology Stack| Category | Technology ||---|---|| Programming Language | Python || Foundation Model | Qwen2.5-Coder-7B || Model Framework | Hugging Face Transformers || Fine-tuning | PEFT, LoRA, TRL || Agent Orchestration | LangGraph || LLM Integration | LangChain || Observability | LangSmith || Backend | FastAPI || Frontend | React || 3D Visualization | Three.js || Geometry Kernel | OpenCASCADE || CAD Workflow | CadQuery || Vector Storage | Supabase || CAD Export Formats | STEP, STL || Additional Infrastructure | MERN, Firebase SDK |---## Compute InfrastructureBREPLINE was trained using high-performance computingresources provided by the Inter-University Centre forAstronomy and Astrophysics (IUCAA), Pune, India.### Training Infrastructure| Property | Description ||---|---|| Computing Facility | IUCAA High Performance Computing || Cluster | Pegasus || Reported Training Node | GPU 02 || GPU Infrastructure | NVIDIA Tesla P100-class GPU nodes || Training Duration | Approximately 7 hours 11 minutes || Institution | IUCAA, Pune, India |The exact number of GPUs allocated to the training run andtheir individual memory configurations are not documented.For more information, visit the[IUCAA HPC Facility](http://hpc.iucaa.in/?q=node/2).---## Bias, Risks and LimitationsBREPLINE is an experimental engineering-oriented languagemodel and may generate inaccurate, incomplete, or invalidengineering designs.Known and anticipated limitations include:- Incorrect interpretation of engineering requirements.- Invalid or non-executable CAD code.- Dimensional inconsistencies.- Unsupported geometry operations.- Incorrect material assumptions.- Geometrically valid but physically unsuitable designs.- Limited generalization to unfamiliar mechanical components.- Inaccurate structural and durability estimates.- Potential errors in multi-component assembly generation.- Dependence on the quality of natural-language prompts.- Inherited limitations and biases of the foundation model.### RecommendationsUsers should:- Verify all generated dimensions and tolerances.- Review generated code before execution.- Execute generated programs in restricted environments.- Validate material properties and loading conditions.- Use established engineering tools for structural analysis.- Obtain qualified engineering approval before manufacturing.BREPLINE should be considered an engineering assistanceand research system rather than an autonomous engineeringcertification tool.---## Environmental ImpactBREPLINE employs parameter-efficient fine-tuning to reducethe number of trainable model parameters compared withfull-parameter fine-tuning.- **Computing Facility:** IUCAA Pegasus HPC Cluster- **Reported Training Duration:** Approximately 7 hours 11 minutes- **Compute Region:** Pune, Maharashtra, India- **Carbon Emissions:** Not measuredEnvironmental impact may be estimated using the[Machine Learning Impact Calculator](https://mlco2.github.io/impact#compute)introduced by Lacoste et al. (2019).---## Related ResearchBREPLINE draws upon the broader research landscape ofgenerative 3D modeling, computational geometry, andartificial intelligence for computer-aided design.| Research | Year | Research Direction ||---|---:|---|| DeepCAD | 2021 | Generative parametric CAD design || DreamFusion | 2022 | Text-to-3D generation || Point-E | 2022 | Generative 3D point clouds || Shap-E | 2023 | Implicit 3D representations || 3D Gaussian Splatting | 2023 | Real-time 3D rendering || Instant3D | 2024 | Rapid 3D asset generation || GALA3D | 2024 | Compositional 3D scene generation |These works provide broader research context and do notnecessarily represent components directly implementedwithin BREPLINE.---## Future DevelopmentThe proposed research and development directions include:- Larger engineering-specific training datasets.- Improved parametric reasoning capabilities.- Enhanced multi-component mechanical assembly generation.- Native CAD software integration.- Improved physics and structural simulation fidelity.- Automated engineering constraint verification.- Multimodal engineering drawing interpretation.- Distributed inference and GPU cluster deployment.- Standardized text-to-CAD evaluation benchmarks.- Industrial engineering and manufacturing integrations.- Expanded automobile simulation capabilities.---## Dependencies and AvailabilityBREPLINE uses Python and an ecosystem of machine learning,computational geometry, backend, and visualization libraries.Core model dependencies include:- PyTorch- Hugging Face Transformers- PEFT- TRL- Accelerate- TokenizersThe broader application additionally uses:- CadQuery- OpenCASCADE- FastAPI- LangChain- LangGraph- LangSmith- Supabase- React- Three.jsThe BREPLINE web platform is available at:**https://brepline.vercel.app**This Hugging Face repository provides the model adapter.The complete application infrastructure is separate fromthe adapter distributed through this repository.---## LicenseThe underlying foundation model is subject to the licensespecified in the official Qwen2.5-Coder-7B repository.The licensing terms for the BREPLINE adapter should bespecified separately by its developers.Users must comply with all applicable foundation model,adapter, dataset, and software dependency licenses.---## CitationIf you use BREPLINE in academic research, engineeringexperiments, or related applications, please cite thefollowing software reference.### BibTeX```bibtex@misc{brepline2026,title = {BREPLINE v1.0.1: A Large Mechanical Modelfor Parametric 3D CAD Generation},author = {Singh, Jashanpreet and Kaur, Tegkirat},year = {2026},version = {1.0.1},howpublished = {Hugging Face and BREPLINE Web Platform},url = {https://brepline.vercel.app},note = {Experimental research software formechanical engineering and parametric CAD}}```### APASingh, J., & Kaur, T. (2026). *BREPLINE v1.0.1:A Large Mechanical Model for Parametric 3D CAD Generation*[Computer software]. https://brepline.vercel.app---## AcknowledgementsThe BREPLINE development team acknowledges:- Inter-University Centre for Astronomy and Astrophysics(IUCAA), Pune, for access to HPC infrastructure.- Dr. Hum Chand for facilitating computational research.- Guru Nanak Dev University, Amritsar.- Thapar Institute of Engineering and Technology, Patiala.- The Qwen development team.- The Hugging Face open-source community.- The developers of OpenCASCADE, CadQuery, LangChain,LangGraph, and other open-source technologies.---## Model Card Authors- **Jashanpreet Singh**- **Tegkirat Kaur****Development Team:** High on Caffeine## ContactFor research collaborations, technical inquiries,engineering applications, or feedback:- **Email:** astrodingra@gmail.com- **Website:** https://brepline.vercel.app---### Framework Versions- PEFT: 0.17.1---**BREPLINE — Engineering through Intelligence.**
123456789101112131415161718192021222324252627282930313233343536373839404142{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "Qwen/Qwen2.5-Coder-7B", "bias": "none", "corda_config": null, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 128, "lora_bias": false, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "qalora_group_size": 16, "r": 64, "rank_pattern": {}, "revision": null, "target_modules": [ "down_proj", "q_proj", "gate_proj", "up_proj", "v_proj", "k_proj", "o_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_dora": false, "use_qalora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:0f7a3067b7dac54b954ef68e6f66d3338c9a101f97055552e74896fbce9af348size 645975704123456789101112131415161718192021222324{ "</tool_call>": 151658, "<tool_call>": 151657, "<|box_end|>": 151649, "<|box_start|>": 151648, "<|endoftext|>": 151643, "<|file_sep|>": 151664, "<|fim_middle|>": 151660, "<|fim_pad|>": 151662, "<|fim_prefix|>": 151659, "<|fim_suffix|>": 151661, "<|im_end|>": 151645, "<|im_start|>": 151644, "<|image_pad|>": 151655, "<|object_ref_end|>": 151647, "<|object_ref_start|>": 151646, "<|quad_end|>": 151651, "<|quad_start|>": 151650, "<|repo_name|>": 151663, "<|video_pad|>": 151656, "<|vision_end|>": 151653, "<|vision_pad|>": 151654, "<|vision_start|>": 151652}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} {%- endif %} {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0]['role'] == 'system' %} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {%- else %} {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }}{%- endif %}12345678910111213141516171819202122232425{ "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>"}123version https://git-lfs.github.com/spec/v1oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafasize 11421896123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207{ "add_bos_token": false, "add_prefix_space": false, "added_tokens_decoder": { "151643": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151644": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151645": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151646": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151647": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151648": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151649": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151650": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151651": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151652": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151653": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151654": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151655": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151656": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151657": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151658": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151659": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151660": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151661": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151662": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151663": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151664": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "errors": "replace", "extra_special_tokens": {}, "model_max_length": 32768, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174{ "best_global_step": 250, "best_metric": 0.04629036411643028, "best_model_checkpoint": "/kaggle/working/results_v3/checkpoint-250", "epoch": 0.15335071308081583, "eval_steps": 250, "global_step": 250, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "entropy": 1.1905518718063832, "epoch": 0.012268057046465266, "grad_norm": 0.21457171440124512, "learning_rate": 3.8775510204081634e-05, "loss": 0.3018, "mean_token_accuracy": 0.9331748547032476, "num_tokens": 119180.0, "step": 20 }, { "entropy": 0.656643642950803, "epoch": 0.024536114092930533, "grad_norm": 0.2760809361934662, "learning_rate": 7.959183673469388e-05, "loss": 0.0514, "mean_token_accuracy": 0.992144992761314, "num_tokens": 232324.0, "step": 40 }, { "entropy": 0.4988061939366162, "epoch": 0.0368041711393958, "grad_norm": 0.013519217260181904, "learning_rate": 9.999014146180143e-05, "loss": 0.0435, "mean_token_accuracy": 0.9933592369779944, "num_tokens": 345751.0, "step": 60 }, { "entropy": 0.5777549580670893, "epoch": 0.049072228185861065, "grad_norm": 0.08756305277347565, "learning_rate": 9.991129648046595e-05, "loss": 0.0412, "mean_token_accuracy": 0.9934136947616935, "num_tokens": 461043.0, "step": 80 }, { "entropy": 0.583151894249022, "epoch": 0.06134028523232633, "grad_norm": 0.014430582523345947, "learning_rate": 9.975373087293581e-05, "loss": 0.0394, "mean_token_accuracy": 0.993864593654871, "num_tokens": 576658.0, "step": 100 }, { "entropy": 0.5827294672839344, "epoch": 0.0736083422787916, "grad_norm": 0.0015936832642182708, "learning_rate": 9.951769315335844e-05, "loss": 0.039, "mean_token_accuracy": 0.9938922835513949, "num_tokens": 692041.0, "step": 120 }, { "entropy": 0.5659099637530745, "epoch": 0.08587639932525687, "grad_norm": 0.050371505320072174, "learning_rate": 9.92035556029287e-05, "loss": 0.0383, "mean_token_accuracy": 0.9938046246767044, "num_tokens": 808998.0, "step": 140 }, { "entropy": 0.5717359392903745, "epoch": 0.09814445637172213, "grad_norm": 0.004486033692955971, "learning_rate": 9.881181368272303e-05, "loss": 0.0386, "mean_token_accuracy": 0.9939710825681687, "num_tokens": 925872.0, "step": 160 }, { "entropy": 0.5651769353076815, "epoch": 0.11041251341818739, "grad_norm": 0.0003963416093029082, "learning_rate": 9.834308525225301e-05, "loss": 0.0408, "mean_token_accuracy": 0.9935644891113042, "num_tokens": 1037124.0, "step": 180 }, { "entropy": 0.5225304786115885, "epoch": 0.12268057046465267, "grad_norm": 0.006818730849772692, "learning_rate": 9.779810959497075e-05, "loss": 0.0384, "mean_token_accuracy": 0.9939648186787963, "num_tokens": 1155171.0, "step": 200 }, { "entropy": 0.49754037521779537, "epoch": 0.1349486275111179, "grad_norm": 0.0007147659198381007, "learning_rate": 9.717774625226323e-05, "loss": 0.0392, "mean_token_accuracy": 0.9938155833631754, "num_tokens": 1269325.0, "step": 220 }, { "entropy": 0.4892108106054366, "epoch": 0.1472166845575832, "grad_norm": 0.029978016391396523, "learning_rate": 9.648297366777446e-05, "loss": 0.0369, "mean_token_accuracy": 0.9943212358281016, "num_tokens": 1389901.0, "step": 240 }, { "epoch": 0.15335071308081583, "eval_entropy": 0.5253655177354812, "eval_loss": 0.04629036411643028, "eval_mean_token_accuracy": 0.994133312702179, "eval_num_tokens": 1448486.0, "eval_runtime": 119.9324, "eval_samples_per_second": 1.668, "eval_steps_per_second": 1.668, "step": 250 } ], "logging_steps": 20, "max_steps": 1631, "num_input_tokens_seen": 0, "num_train_epochs": 1, "save_steps": 250, "stateful_callbacks": { "EarlyStoppingCallback": { "args": { "early_stopping_patience": 4, "early_stopping_threshold": 0.0 }, "attributes": { "early_stopping_patience_counter": 0 } }, "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": false }, "attributes": {} } }, "total_flos": 6.285357221305344e+16, "train_batch_size": 1, "trial_name": null, "trial_params": null}.gitattributes+1
README.md+798-1
adapter_config.jsonAdded+42
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+24
chat_template.jinjaAdded+54
merges.txtAdded
special_tokens_map.jsonAdded+25
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+207
trainer_state.jsonAdded+174
vocab.jsonAdded