brainwires-finetune
Cloud fine-tune APIs and dataset pipelines for Brainwires agents.
Fine-tuning surface:
brainwires-finetune(this crate) — cloud fine-tune APIs (OpenAI / Anthropic / Together / Fireworks / Anyscale / Bedrock / Vertex AI) plus dataset pipelines.rullama-finetune(siblingrullamaworkspace) — local PEFT (LoRA / QLoRA / DoRA), Burn-backed. (Lived in this workspace as a separate local-PEFT crate prior to v0.11; moved out alongside the rest of the wgpu inference engine.)rullama-training(siblingrullamaworkspace) — placeholder for actual training-from-scratch.
What lives here
manager::TrainingManager— dispatches fine-tune jobs to whichever provider implementsFineTuneProvider.cloud::FineTuneProvider+FineTuneProviderFactory— provider-agnostic trait + factory.cloud::providers(one module per cloud API) — concrete impls.config— hyperparameter / adapter / alignment-method types shared withrullama-finetune.datasets— JSONL / format conversion / tokenization / dedup (absorbed from the deprecatedbrainwires-datasetscrate).error::TrainingError,types::{TrainingJobId, TrainingJobStatus, ...}— shared infrastructure.
Features
| Feature | Default | Notes |
|---|---|---|
cloud |
yes | reqwest-based cloud provider clients |
bedrock |
no | AWS Bedrock fine-tune (sigv4) |
vertex |
no | Google Vertex AI (gcp_auth) |
datasets-hf-tokenizer |
no | HuggingFace tokenizers |
datasets-tiktoken |
no | OpenAI tiktoken |
datasets-dedup |
no | sha2 + rand for content dedup |
datasets-full |
no | All three datasets sub-features |
full |
no | cloud + bedrock + vertex + datasets-full |
Usage
[]
= "0.11"
use ;
let manager = new;
let job = manager.submit.await?;
See also
rullama-finetune(siblingrullamaworkspace) — local PEFT (LoRA / QLoRA / DoRA), Burn-backed. Reuses this crate's sharedconfig/error/typesmodules.brainwires-provider— LLM chat clients (separate crate).brainwires— umbrella facade withtraining/training-cloudfeatures (cloud only since v0.11).
License
MIT OR Apache-2.0