Skip to main content

No project description provided

Project description

Kubeflow Pipelines

Purpose

The purpose of this repository is a place to learn new things. From infrastructure to new LLM training techniques.

State

Data: Currently I have a functional transformer pipeline which learns common n-grams in human speech. This is due to the lack of data primarily.

Model: The transformer model is tested, and has been compared to other implementation. It's prediction time is sensible and small enough for my local hardware.

Future Work

Improved ML: Currently only supervised learning is employed, I expect the performance will plateau without reinforcement learning with human feedback (RLHF). This is to be added to the reddit pipeline.

Improved Logging: After training I'd like a set of input output pairs logged to MlFlow for increased transparency to output deficiencies.

Pipelines

  1. Reddit Iteratively learning to create engaging posts with reddit data.

Reddit

Baremetal Usage

  1. Run notebook notebooks/reddit_training.ipynb
    • Define hyperparameters that make sense for your system
  2. Metrics are recorded locally and can be observed with locally running mlflow or with the verbose=true options, test examples are printed to standard out

Kubeflow Usage

  1. Upload notebook notebooks/reddit_pipeline.ipynb
  2. Define environment variables
  3. Run cells defining training pipeline
  4. Run/Schedule pipeline

Pipeline Description

The pipeline is ran each day. In this process this is done:

  • New data is downloaded
  • The current best model is downloaded and evaluated
  • If the model has degraded or is not proficient, training is ran

Pipeline GUI

At the time of writing this I only have 500 samples in training set, so a test BLEU score of 0 is expected, though I hope in the coming days it will improve.

The pipeline records metrics in mlflow and records the hyperparameters/logs/outputs of each run.

Metrics GUI Hyperparameters GUI

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

ajperry_pipeline-0.1.21.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

ajperry_pipeline-0.1.21-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file ajperry_pipeline-0.1.21.tar.gz.

File metadata

  • Download URL: ajperry_pipeline-0.1.21.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.10.18 Linux/6.11.0-1018-azure

File hashes

Hashes for ajperry_pipeline-0.1.21.tar.gz
Algorithm Hash digest
SHA256 048833282cfde42a97d4a0505a145c8ee5af8a232c9a96151cd33af4994f717d
MD5 9f828b6a670c9f4200241aa00110a63d
BLAKE2b-256 6a3ea48eda56ba1b5e3e69b468f773b10e1b846119bc63c356f15e598e3cbd5d

See more details on using hashes here.

File details

Details for the file ajperry_pipeline-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: ajperry_pipeline-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.10.18 Linux/6.11.0-1018-azure

File hashes

Hashes for ajperry_pipeline-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 0b9c06dabaa1920c5c5fec87602bfea9ac9dadbd0039c300e7888603423e3317
MD5 b4e948a6a06d9ec60b38ca9da68ff27d
BLAKE2b-256 13524f5c75188f271cc3ced81453dd108f3df54247ca89d282d8076432112209

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