A utilities library for model training subnets.
Project description
Taoverse Package
This is a package containing various python modules for use in bittensor subnets.
Currently it is primarily supporting the Macrocosmos SN 9 Pretraining and SN 37 Finetuning subnets but much of the code is generally useful and all are welcome to leverage it for their own work as well.
Find the latest published package here: https://pypi.org/project/taoverse/
Following is an overview of each module and some of the bigger pieces of code they include.
Metagraph
The metagraph module contains code relating to metagraph operations.
-
The
MetagraphSyncerallows for easily refreshing a specified metagraph at a specified cadence. It will operate in asynchronously on the asyncio event loop and will notify any registered listeners after each sync. -
The
MinerIteratorprovides a thread safe infinite iterator that safely handles adding new uids.
Model
The model module contains code relating to large language models.
-
The
ModelTrackerwill track model metadata and evaluation history on a per hotkey basis. It is designed to keep state across restarts and has methods to save and load state. -
The
ModelUpdaterreads metadata from the chain, validates it, and checks if it is an update to a previous tracked hotkey. -
The model.competition module supports grouping models into distinct competitions.
- The
CompetitionTrackerhelps track weights at a per competition and per subnet level. Like theModelTrackerit is designed to keep state across restarts. - The
EpislonFuncallows for computing epsilon with a custom function on a per competition basis. Both aFixedEpsilonand aLinearDecayimplementation are included.
- The
-
The model.storage module supports storing and retrieving models and metadata.
- For models there are included implementations for Hugging Face and the local disk.
- For metadata there is an included implementation using the Bittensor chain.
Utilities
The utilities module contains code found to be generically useful in the context of subnets.
- The
PerfMonitoris a context manager that tracks the performance of a block of code by taking several samples - In
utils.pythere are some helpers torun_in_threadorrun_in_subprocess.- Running metagraph operations in a separate thread with a ttl can help avoid getting stuck on those actions.
- Running model evaluation within a sub process can help ensure that the model is completely removed from the gpu afterwards.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taoverse-1.2.0.tar.gz.
File metadata
- Download URL: taoverse-1.2.0.tar.gz
- Upload date:
- Size: 38.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cdfa07d9590f6ca78800ee461a390dbe87ea15410a95891506df2f8c41d7aa9
|
|
| MD5 |
4bee1657ef7b65adffa74b0e116a7d00
|
|
| BLAKE2b-256 |
e864fdd479cacad793d3d32131a2db7348ef7ad22556d88fa872ff9549582598
|
File details
Details for the file taoverse-1.2.0-py3-none-any.whl.
File metadata
- Download URL: taoverse-1.2.0-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0db20e62aeab10d7ed9328b2ce9ccd03f29a27491ce0aab632b78b27bd3ca887
|
|
| MD5 |
4535ef20e75465411bc2ae5ea7fae3f5
|
|
| BLAKE2b-256 |
3170847037a7754096860a32921f1e02e69bd242dc0850071b9352873eb0b6b4
|