cybermodels-windows / TRAINING.md
p4x-ng's picture
Release Cybermodels Windows v0.1 adapter, reference index and training data
3d81e63 verified
|
Raw History Blame Contribute Delete
1.73 kB

Reproducing the Windows adapter

Run python build_data.py in the release directory. It uses the bundled, pinned sources and writes data/examples.jsonl, the train/eval subsets, and windows.sqlite. The data can also be used independently of GPUless. The paired examples contain the full text shown to the model in prompt and the desired continuation in answer. Training includes the end token after each answer.

For the native run, use the Flash-capable Belikewater runtime with the matching prepared checkpoint, expert bank and hot-expert list. Set those paths in a local JSON settings file under inputs, flat_cache and hot_experts_file. The served capture uses map_flat_cache: true and capture_cache_slots: 2048. Launch:

python training/capture.py settings.json data/examples.jsonl features

On the GPUless host, point GPULESS_ROOT at the checkout containing the native C libraries, Python bridge, PEFT exporter and compact training-space code:

export PYTHONPATH="$GPULESS_ROOT/src:$GPULESS_ROOT/labs/knowledge_strategies"
export GPULESS_NATIVE_LIB="$GPULESS_ROOT/build/lib/libgpuless.so"
export GPULESS_PTPU_LIB="$GPULESS_ROOT/build/lib/libptpu_lora.so"
OPENBLAS_NUM_THREADS=2 OMP_NUM_THREADS=2 MKL_NUM_THREADS=2 CUDA_VISIBLE_DEVICES="" \
  "$GPULESS_ROOT/venv/bin/python" training/fit.py features data/examples.jsonl fit

The GPU phase captures frozen activations and logits. GPUless's CPU-native MeZO optimizer trains the compact adapter matrices, then expands them into the normal PEFT tensor shapes. The portable adapter config identifies the upstream Hugging Face base. Its companion GPUless provenance records the exact native packed base fingerprint for GPUless/Flash reload.