Skip to main content

AutoForge — automatic model building, training, and fine-tuning that calibrates to your hardware. Fixed mamba bug and fixed critial NaN gradients in the maba scan under amp

Project description

brsx

AutoForge — build, train, and fine-tune models that calibrate themselves to your hardware.

brsx probes your GPU/CPU by actually running a few steps, picks a model size that fits your memory and speed target, and trains it. No config wrestling — pick a mode and go.

Install

pip install brsx

Optional extras (installed only if you need them):

pip install brsx[finetune]   # HuggingFace fine-tuning (transformers, peft, accelerate)
pip install brsx[qlora]      # 4-bit QLoRA (bitsandbytes, Linux/CUDA)
pip install brsx[tokenizer]  # fast BPE for the MTP branch
pip install brsx[all]        # everything

Usage

from brsx import automodel

automodel.run()

You'll get a menu:

1) Transformer training        — train a standard Transformer from scratch
2) MTP Transformer training    — Multi-Token Prediction heads (DeepSeek-V3 style)
3) HuggingFace model fine-tune — fine-tune a HF model (local path or hub id)
4) brsx (.pt) model fine-tune  — fine-tune an existing brsx model
5) fine-tune a mtp model
6) find right config for your pc
7) dataset editor for json, jsonl, parquet...
8) convert brsx model(.pt) to safetensors
9) A training system that can continue halfway with a special brsx technique without an optimizer load
10)Hybrid model training (transformer, mamba, gru, cnn all in one models.)
11)hybrid fine-tune
12) chat with a .safetensors brsx model or standard hf model(chat.py is reading the config, it will run every brsx and hf model.)

Pick one and follow the prompts — everything (mode, learning rate, steps, checkpointing, data source) is asked interactively.

License

Apache-2.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brsx-0.9.3.tar.gz (9.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brsx-0.9.3-py3-none-any.whl (10.0 MB view details)

Uploaded Python 3

File details

Details for the file brsx-0.9.3.tar.gz.

File metadata

  • Download URL: brsx-0.9.3.tar.gz
  • Upload date:
  • Size: 9.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for brsx-0.9.3.tar.gz
Algorithm Hash digest
SHA256 25a07954021c656b7a7ed71fb6495646fcdc7bceeb6e685d719d8469f0d94796
MD5 2ed7520222ab9cf309ae1c9b6affff08
BLAKE2b-256 7cc6a8af320290bbb9e798d707d47e15d4513a86afdd283fa923202e2a44ccfd

See more details on using hashes here.

File details

Details for the file brsx-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: brsx-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for brsx-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 347745e00c1bebb5d52e77c1f57d8e32c26f089ad8bbb9fc48232350b823023b
MD5 c52cf5091b5a623a897c333dda02e004
BLAKE2b-256 ca11dd49f65b1ab5bbe156418597883be10c9265e7241fbf2934be624cfdda63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page