Skip to main content

Inephany client library to use Paramorph Agents.

Project description

Paramorph Client Library

Paramorph is a client library that provides automated hyperparameter tuning for neural network training. It integrates seamlessly with Hugging Face Transformers and other PyTorch-based training frameworks to dynamically adjust learning rates, weight decay, and other hyperparameters during training.

Features

  • Automated Hyperparameter Tuning: Dynamically adjusts learning rates, weight decay, and other optimizer parameters
  • Hugging Face Integration: Built-in support for Hugging Face Transformers with minimal code changes
  • Multi-Agent Architecture: Uses specialized agents for different parameter groups (embeddings, attention, linear layers, convolutions)
  • Real-time Monitoring: Integrates with Weights & Biases for experiment tracking
  • Flexible Configuration: Easy-to-use YAML configuration system

Installation

Prerequisites

  • Python 3.10+
  • PyTorch
  • Hugging Face Transformers (for HF integration)
  • [Optional] Weights & Biases account and API key (for experiment tracking and logging)

Setup

Paramorph depends on the libinephany package, which provides core utilities and data models. Installation instructions differ based on your use case:

Ensure that python3.12 and make is installed:

Ubuntu / Debian

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12

MacOS with brew

brew install python@3.12

For Developers (Monorepo)

If you're working within the Inephany monorepo, the libinephany package is already available and will be installed into the venv created for this package when you run make install-dev.

For Clients (Standalone Installation)

Both libinephany and paramorph are available on PyPI and can be installed directly:

Optional but recommended

python -m pip install --upgrade pip

Install paramorph (libinephany will be installed as a depencency)

python -m pip install paramorph

For development installations with additional dependencies:

pip install libinephany[dev] paramorph[dev]

Then generate an API key in the portal and export it:

export PARAMORPH_API_KEY=YOUR_API_KEY

Getting Help

  • Check the example scripts in the repository
  • Review the configuration file format
  • Ensure all dependencies are installed correctly
  • Verify your model architecture matches the agent module mapping

License

This package is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paramorph-0.6.1.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paramorph-0.6.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file paramorph-0.6.1.tar.gz.

File metadata

  • Download URL: paramorph-0.6.1.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for paramorph-0.6.1.tar.gz
Algorithm Hash digest
SHA256 169b0f3b553f8b2f6e3167b7bc3644d28c17d9762b7d21aebc4c58be4c3c69db
MD5 73c4c33d4201922ae9215af1007c88f2
BLAKE2b-256 57df28ca7d478c8993fdf3f1461a6c127fc55047722cd83e04de7e5bef34bd15

See more details on using hashes here.

File details

Details for the file paramorph-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: paramorph-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for paramorph-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e63a838038e6ce725027cf844f0d9c6c5e9c5bee02fcb891289de1c6fe201ef8
MD5 37b5d832ca0c21b23bd990951bd21ddd
BLAKE2b-256 a35b314d528c9863b1f6f549c8e37091f84cc4b6fb29cf4267874641a7bea6a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page