Skip to content

pesc101/exp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 Experiment Template

This repository is a template for running experiments using the following tools and libraries:

  • 📦 uv
    • A Python package manager replacing pip and poetry.
  • 📝 pyproject
    • For project management.
  • ⚙️ hydra
    • For flexible configuration management.
  • 📊 wandb
    • For experiment tracking and visualization online.
  • 🤖 encourage
    • A custom library for handling LLM inference, prompt handling, and utility functions.

🚀 Initialization

📦 UV

To initialize the environment using uv, run the following command:

uv sync

📊 Weights & Biases (wandb)

For using Weight & Biases you need to login to your account using the following command:

wandb login

There you have to enter your API key which you can find in your account settings.

⚡ Usage

When using this template you have to declare all your configuration parameters in the conf/defaults.yaml file. Also modify the conf/model/defaults.yaml and conf/data/defaults.yaml files to fit your needs.

To run an experiment you can use the following command:

uv run main.py

The output will be saved in the outputs folder. Each experiment generates a new timestamped folder containing:

  • Configuration files (.hydra/)
  • Logs (main.log)
  • Inference output (inference_log.json)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published