Skip to main content

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 MetagraphSyncer allows 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 MinerIterator provides a thread safe infinite iterator that safely handles adding new uids.

Model

The model module contains code relating to large language models.

  • The ModelTracker will 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 ModelUpdater reads 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 CompetitionTracker helps track weights at a per competition and per subnet level. Like the ModelTracker it is designed to keep state across restarts.
    • The EpislonFunc allows for computing epsilon with a custom function on a per competition basis. Both a FixedEpsilon and a LinearDecay implementation are included.
  • 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 PerfMonitor is a context manager that tracks the performance of a block of code by taking several samples
  • In utils.py there are some helpers to run_in_thread or run_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.

Metadata

Release files for taoverse 2.0.2

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

Source distribution (sdist)

Source distribution for taoverse 2.0.2
File Size Uploaded
taoverse-2.0.2.tar.gz 55.7 kB Details

Built distribution (wheel)

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

Total release size: 116.3 kB

Release files / taoverse-2.0.2.tar.gz

Download URL taoverse-2.0.2.tar.gz
Size 55.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bae6c840e9bc14bf9411c1aaf2e35f977ad7f052d034bd8db338f48980113e7b
BLAKE2b-256 checksum
How to use checksums
7035560cc64aab35b6d96a28346351f172fa4f1fdb41b2b5c9bb701caae51833
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / taoverse-2.0.2-py3-none-any.whl

Download URL taoverse-2.0.2-py3-none-any.whl
Size 60.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ebae443937e2b0c45e6f486a59796891919a5076fd131764e83188eaf336cb7
BLAKE2b-256 checksum
How to use checksums
1d0409cf61f2238c34a7a5ada406952ff792e5572fd9ce0e747ac632655a1c44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

2 release files

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