Skip to main content

TuneX

TuneX is a powerful command-line tool designed to provide a comprehensive solution for working with Large Language Models (LLMs). It offers a unified interface for running, fine-tuning, and instruction tuning LLMs, making it an essential utility for researchers and developers in the field of natural language processing and artificial intelligence.

Key features of TuneX include:

  • Support for multiple LLM architectures (GPT2, Llama, Mistral, Gemma)
  • Flexible tokenizer options
  • Chat interface support
  • Various prompt style options
  • Advanced text generation techniques (Top-p, Top-k, Beam Search)
  • Extensive fine-tuning capabilities, including full fine-tuning, adapters, and LoRA
  • Instruction tuning based on human preferences (RLHF, PPO, DPO, RLOO)
  • Comprehensive documentation with examples

TuneX simplifies complex LLM-related tasks through an intuitive command-line interface, allowing users to easily run models, fine-tune on custom datasets, and implement advanced instruction tuning techniques. Whether you're a beginner experimenting with LLMs or an experienced researcher pushing the boundaries of AI, TuneX provides a streamlined, command-line driven approach to support your work.

Installation

pip install tunex

Quick start

# tunex [action] [checkpoit directory / model]
tunex	download  gpt2
tunex	chat      checkpoints/gpt2
tunex	list

Listing Supportive models

tunex list
>>
 _____                __  __
|_   _|   _ _ __   ___\ \/ /
  | || | | | '_ \ / _ \\  / 
  | || |_| | | | |  __//  \ 
  |_| \__,_|_| |_|\___/_/\_\
                            

Supported models: 

1 gpt2
2 gpt2-medium
3 gpt2-large
4 gpt2-xl

Downloading and chatting with models

tunex download "gpt2"
# download the gpt2 model and store it within "checkpoints/gpt2" by default
tunex chat "checkpoints/gpt2"

>>
 _____                __  __
|_   _|   _ _ __   ___\ \/ /
  | || | | | '_ \ / _ \\  / 
  | || |_| | | | |  __//  \ 
  |_| \__,_|_| |_|\___/_/\_\
                            

Initiating chat mode with gpt2

Setting sead to 42

>> Prompt: 

General help

# tunex [action] -h
tunex download -h
>>
Download weights or tokenizer data from the Hugging Face Hub.

positional arguments:
  repo_id               The repository ID in the format ``org/name`` or ``user/name`` as shown in Hugging Face. (required, type: str)

optional arguments:
  -h, --help            Show this help message and exit.
  --config CONFIG       Path to a configuration file.
  --print_config[=flags]
                        Print the configuration after applying all other arguments and exit. The optional flags customizes the output and are one or more keywords
                        separated by comma. The supported flags are: comments, skip_default, skip_null.
  --access_token ACCESS_TOKEN
                        Hugging Face API token to access models with restrictions. (type: Union[str, null], default: null)
  --tokenizer_only {true,false}
                        Whether to download only the tokenizer files. (type: bool, default: False)
  --convert_checkpoint {true,false}
                        Whether to convert the checkpoint files from hugging face format after downloading. (type: bool, default: True)
  --checkpoint_dir CHECKPOINT_DIR
                        Where to save the downloaded files. (type: <class 'Path'>, default: checkpoints)
  --model_name MODEL_NAME
                        The existing config name to use for this repo_id. This is useful to download alternative weights of existing architectures. (type:
                        Union[str, null], default: null)

Features Roadmap

  • Multiple LLM support
    • GPT2
    • Llama
    • Mistral
    • Gemma
  • Support for different Tokenizers
  • Chat Interface support
  • Different Prompt Style support
  • Text generation
    • Top-p
    • Top-k
    • Beam Search
  • Finetuning Support with different datasets
    • Full finetuning
    • Adaptars
    • LoRA
  • Instruction Tuning on Human Preferences
    • RLHF
    • PPO
    • DPO
    • RLOO
  • Comprehensive Documentation with example

Acknowledgements

Metadata

Release files for tunex 0.1.3

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

Source distribution (sdist)

Source distribution for tunex 0.1.3
File Size Uploaded Provenance Actions
tunex-0.1.3.tar.gz 17.1 kB Without provenance Details for tunex-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 36.1 kB

Release files / tunex-0.1.3.tar.gz

Download URL tunex-0.1.3.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
98b31383cc22a7a0751e3a8eb3e46a506a50901989b7c37407c4a25037d575ba
BLAKE2b-256 checksum
How to use checksums
7702d524047e4842c021830a1878aa51dbe4e4e7957798f8f91f0ea33872b993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / tunex-0.1.3-py3-none-any.whl

Download URL tunex-0.1.3-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd12a3be6623c33abf81970d01c98b4dcbe25447e288843efd8918454cd4ff1e
BLAKE2b-256 checksum
How to use checksums
d86df4d15d344220d36c4ed5e8097f1f8f9e7f95fe78628c21335f6fc3ebdf2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Security for tunex 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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