Skip to main content

GoodWoolf

GoodWoolf

AI by the People

Foundation Models · Commodity Hardware · Collaborative Training

Website  ·  Docs  ·  Main Repository  ·  Training-Ledger


Building Foundation Models Collaboratively on Commodity Hardware

GoodWoolf builds large foundation models on commodity hardware using the following principles:

  • Open Collaboration: Enable collective model development across independent contributors, coordinated through a shared public training ledger.

  • Virtual Memory Extension: Expanding effective memory beyond physical RAM by leveraging storage-based virtual memory.

  • Data-Independent Scaling: Decoupling total training time from global data volume, bounding system latency to individual run durations rather than aggregate data sizes.

Learn more by following the online documentation:

Project Structure

The project consists of two repositories:

Collaborative Training Workflow

The training process is hardware-agnostic, parallel, and completely asynchronous.

========================================================
Visual representation of Collaborative Training Workflow
========================================================

          +-----------+----------+-----------+
          |           |          |           |
          v           |          |           |
  +----------------+  |          v           |
  | Participant A  |  |  +----------------+  |
  |----------------|  |  | Participant B  |  |
  | Local data     |  |  |----------------|  |
  | Train locally  |  |  | Local data     |  |
  | Publish model  |  |  | Train locally  |  |
  | Pull request   |  |  | Publish model  |  |
  +-------+--------+  |  | Pull request   |  |
          |           v  +--------+-------+  |
          |   +----------------+  |          |
          |   | Participant C  |  |          |
          |   |----------------|  |          |
          |   | Local data     |  |          |
          |   | Train locally  |  |          |
          |   | Model offload  |  |          |
          |   | Pull request   |  |          |
          |   +------+---------+  |          |
          |          |            |          |
          v          v            v          |
       +-----------------------------+       |
       |   PUBLIC TRAINING LEDGER    |-------+
       |-----------------------------|
       | Base model weights          |
       | Training updates / PRs      |<------+
       | Training history            |       |
       +-----------------------------+       |
                     |                       |
                     v                       |
       +-----------------------------+       |
       |   Peers / Independent       |       |
       |   Auditors                  |-------+
       |-----------------------------|
       | Validate and aggregate      |
       | model updates               |
       | Publish updated model       |
       | Pull request                |
       +-----------------------------+

Supported Models

Models live in src/goodwoolf/models/<vendor>/<model>/. Each bundled model includes runtime code and training entry points for TOK, NTP, SFT, and RL.

Model Architecture Notes
GoodWoolf/Puppy Custom LLaMA-style transformer; 12 layers, 768 hidden size, 32K vocab, 2048 context. Native GoodWoolf model; TOK trains a RustBPE tokenizer.
OpenAI-Community/GPT2 GPT-2 small; 12 layers, 768 hidden size, 50,257 vocab, 1024 context. Hugging Face GPT-2 wrapper. TOK prepares the token-byte cache instead of training a new tokenizer.
Qwen/Qwen2-0.5B Qwen2 0.5B; 24 layers, 896 hidden size, 151,936 vocab, 131,072 context. Hugging Face Qwen2 wrapper. TOK prepares the token-byte cache instead of training a new tokenizer.

Run gw model --list or gw model --list <vendor> to list local models. Use gw model --list --remote hf [vendor] to list Hugging Face models.

Supported Datasets

You can train GoodWoolf on your own private data. To make things easier, a few public datasets are also integrated so you can use them right away.

Datasets live in src/goodwoolf/data/<vendor>/<dataset>/ and are prepared with gw dataset <vendor>/<dataset> --fetch --prepare. Run gw dataset --list to see the current list. The Training stage column marks the stage each dataset is intended for: NTP (base training with next token prediction), SFT (supervised fine-tuning), or RL (reinforcement learning).

Dataset Description Training stage
nvidia/climbmix ClimbMix-400B pretraining corpus prepared as tokenizer-independent text. NTP
alea-institute/kl3m-usc KL3M US Code legal text corpus prepared as tokenizer-independent parquet text. NTP
Skylion007/openwebtext OpenWebText web-text corpus for pretraining. NTP
Salesforce/wikitext WikiText-2 language-modeling corpus. NTP
allenai/ai2_arc AI2 Reasoning Challenge, multiple-choice science questions. SFT
openai/humaneval HumanEval, Python coding problems with unit tests. SFT
cais/mmlu MMLU, multiple-choice knowledge across 57 subjects. SFT
HuggingFaceTB/smoltalk SmolTalk, general conversational data. SFT
openai/gsm8k GSM8K, grade-school math word problems with worked solutions. SFT, RL

Usage Examples

goodwoolf and gw are equivalent CLI names.

Inspect available components

gw vendor --list
gw model --list
gw model --list GoodWoolf
gw dataset --list

Prepare training data

gw dataset <vendor>/<dataset> --fetch --prepare

For example:

gw dataset nvidia/climbmix --fetch --prepare
gw dataset HuggingFaceTB/smoltalk --fetch --prepare

Fetch or create a model

gw pull <vendor>/<model> [--model-id <MODEL_ID>]
gw model <vendor>/<model> --config --weights
gw model <new-vendor>/<new-model> --template OpenAI-Community/GPT2

Train model

gw train <vendor>/<model> --stage NTP --data-name <vendor>/<dataset>

For example:

gw train GoodWoolf/Puppy --stage TOK --data-name nvidia/climbmix
gw train GoodWoolf/Puppy --stage NTP --data-name nvidia/climbmix
gw train GoodWoolf/Puppy --stage SFT --data-name HuggingFaceTB/smoltalk
gw train GoodWoolf/Puppy --stage RL --data-name openai/gsm8k

--stage selects the training stage: TOK (tokenizer training; HF models prepare the token-byte cache), NTP (base training with next token prediction), SFT (supervised fine-tuning, full answer prediction), or RL (reinforcement, free thinking with final answer prediction).

Generate text

gw run <vendor>/<model> --prompt "A long time ago..." --max-tokens 100

Chat interactively

gw chat <vendor>/<model> --max-tokens 256 --temperature 0.6 --top-k 50

gw chat loads the active weights for the model name. Type quit or exit to end the session, or clear to start a new conversation. For a single prompt, use gw run.

Save and manage checkpoints

gw save <vendor>/<model> [--load-path <checkpoint>]
gw checkout <vendor>/<model> --model-id <MODEL_ID>
gw merge <vendor>/<model> --data-name <vendor>/<dataset> --model-id <MODEL_ID>
gw ledger <vendor>/<model> --check

Get involved

The idea behind GoodWoolf is to build large models together as an open-source community. Building together is cheaper, faster, and more environmentally friendly.

Whether you're training and sharing models, improving the platform, fixing bugs, or writing documentation, your contributions are welcome.

License

Metadata

Release files for goodwoolf 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for goodwoolf 0.1.1
File Size Uploaded Provenance Actions
goodwoolf-0.1.1.tar.gz 2.8 MB Without provenance Details for goodwoolf-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for goodwoolf 0.1.1
File Interpreter ABI Platform Actions
goodwoolf-0.1.1-py3-none-any.whl Python 3 none any Details for goodwoolf-0.1.1-py3-none-any.whl

Total release size: 5.6 MB

Release files / goodwoolf-0.1.1.tar.gz

Download URL goodwoolf-0.1.1.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
aa9efb0928a4d7b21853dfcf38f909e41fc76e83b8f4d8acafc2bcec46e21f5e
BLAKE2b-256 checksum
How to use checksums
1d947e3d31e8f60dcd42880fbda14a5476030235691c0e00e559d434cfb19efd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / goodwoolf-0.1.1-py3-none-any.whl

Download URL goodwoolf-0.1.1-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bdf4dfd0e592c48e63f041dac87f32a93dcf85a473d4f0dbbd6bb434f217ad7c
BLAKE2b-256 checksum
How to use checksums
7f400315a2205e850bc80f2e8c19ad8dcbdc48e96ab36cea17d9fc8615c76178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for goodwoolf 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page