Skip to main content

No project description provided

Project description

PyPI license

Dialz: A Python Toolkit for Steering Vectors

Docs: https://cardiffnlp.github.io/dialz/

Paper: https://www.arxiv.org/abs/2505.06262

About

Steering vectors allow users to modify activations at inference time to amplify or weaken a 'concept', e.g. honesty or positivity.

Dialz supports a diverse set of tasks, including creating contrastive pair datasets, computing and applying steering vectors, and visualizations.

A basic tutorial can be found here.

Installation

pip install dialz

Check out the full documentation for usage information.

Contributing

Any contributions to improve this project are welcome! Please open an issue or pull request in this repo with any changes you have.

License

This code is released under a MIT license.

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

dialz-1.1.3.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

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

dialz-1.1.3-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file dialz-1.1.3.tar.gz.

File metadata

  • Download URL: dialz-1.1.3.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for dialz-1.1.3.tar.gz
Algorithm Hash digest
SHA256 4edbcea761a06484cc03295861b84a3be89458282922dfaee800639ed3901809
MD5 c374c2ec4047845879534d36fbd8a1f3
BLAKE2b-256 08d9f5afa8ecd6b34a39c97f14823dd9b9c76cb69f3bbe77a08c57692796166b

See more details on using hashes here.

File details

Details for the file dialz-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: dialz-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for dialz-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 08cab698fd57bd5f263196606baefc72d189162348dffd33ea9dda3acbef5daf
MD5 935818a0b1e74f464e8db2d73a466aaf
BLAKE2b-256 1bfc4eae566de00b2aa47a4ab743e3aaa3aa4baefd037fb387fe89c556237468

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