MCPcopy Create free account
hub / github.com/BabylonSocial/babylon / train_cpu

Function train_cpu

packages/training/python/scripts/train_local.py:2327–2365  ·  view source on GitHub ↗

Train using CPU (slow fallback).

(
    samples: list[dict],
    model_name: str,
    output_dir: str,
    epochs: int,
    batch_size: int,
    learning_rate: float,
    max_steps: int,
    max_seq_length: int,
    gradient_accumulation_steps: int,
    seed: int,
    validation_split_ratio: float,
    eval_samples: list[dict] | None = None,
    optimizer_name: str = "adamw",
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

train_archetypeMethod · 0.90
_train_locallyMethod · 0.90
main_asyncFunction · 0.85

Calls 2

train_cudaFunction · 0.85
warningMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…