Repeng

Latest version: v0.4.0

Safety actively analyzes 688792 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.0

* SAE support! See `notebooks/sae.ipynb` for an example. (49)
* Fixes for models in `bfloat16`. (49)
* `accelerate` removed from project dependencies, please install it manually with `pip install accelerate` if you need `device_map="auto"` or other `accelerate` features. (56)
* (for devs) Migrate project to `uv` and `ruff` from `poetry` and `black`. (56)

0.3.1

* Add `method="pca_center"` option for training vectors with a more accurate method. (29 / 34)
* Thanks to r3ndd ! :tada:
* (The old method, `"pca_diff"`, remains the default.)
* Also adds the undocumented / experimental `method="umap"`.
* Adds `ControlVector.import_gguf(filename)` as a peer to `export_gguf`. (34)
* Fixes a bug with training vectors on right-padded models, such as llama-3-*. (38)
* Thanks to ohxh ! :tada:

0.3.0

0.2.2

* Fix a bug in control.py (18)

0.2.1

* Add GPT-2 support. (12)
* Officially support Python 3.10 and 3.11. (13)

0.2.0

* Add control vector arithmetic. (6)
* Add GGUF export. (5, 9)
* Notebooks: Add code questions dataset. (4)
* Notebooks: Move `data/` to `notebooks/data/`. (7)
* Notebooks: Add MPS (Apple Silicon) autodetection. (8)

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.