Steering-vectors

Latest version: v0.10.2

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

Scan your dependencies

Page 1 of 2

0.10.2

Chore

* chore: updating coderabbit config to try to make it quieter (42) ([`e54f4e5`](https://github.com/steering-vectors/steering-vectors/commit/e54f4e5a5637202e5d8baed5823f59c176389d28))

* chore: run CI on PRs, not just push (41) ([`8ec50c5`](https://github.com/steering-vectors/steering-vectors/commit/8ec50c5f630bce29f84251fd5a9418b6e1640c64))

Fix

* fix: adding repository and homepage info to pyproject.toml for PyPI ([`b2cd1a7`](https://github.com/steering-vectors/steering-vectors/commit/b2cd1a7f242993a36a370f3aec1fca5924aee832))

0.10.1

Fix

* fix: hotfix to handle cases when activations are distributed across multiple gpus (40)

* hotfix to handle cases when activations are distributed across multiple gpus

* Be able to save and load a trained steering vector

* reverting save/load change

* Update steering_vectors/train_steering_vector.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]users.noreply.github.com>

---------

Co-authored-by: David Chanin <chanindavgmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]users.noreply.github.com> ([`1813feb`](https://github.com/steering-vectors/steering-vectors/commit/1813febbf7da48a0a027f3b14bef20915a4cbda0))

0.10.0

Chore

* chore: Replacing black/flake8/isort with ruff (39)

* Replacing black/flake8/isort with ruff

* fix CI command ([`8d95c31`](https://github.com/steering-vectors/steering-vectors/commit/8d95c31783dc6bf2e71a37de6a6df1268c8baf1d))

* chore: update example notebook, add &39;open in colab&39; button

Nina updated her repo which broke some of the download paths. It should work now. ([`222a851`](https://github.com/steering-vectors/steering-vectors/commit/222a851fac09ac6eba708569accc259b3122d8bd))

* chore: test Gemma and Mistral support (36)

* adding tests for new gemma model layer matching

* adding a steering test for gemma

* adding tests for Mistral too ([`a5e990f`](https://github.com/steering-vectors/steering-vectors/commit/a5e990f54f5760acc541fdc4986b3d6f4f8e69b5))

* chore: simplifying README and removing poor examples (35) ([`6c2d575`](https://github.com/steering-vectors/steering-vectors/commit/6c2d57519df7833a40cf2572956122a15db155f2))

Feature

* feat: decompose train_steering_vector into smaller functions (38)

* feat: decompose train_steering_vector into smaller functions

* fixing linting

* adding docs and tweaking param names

---------

Co-authored-by: Daniel CH Tan <dtch1997users.noreply.github.com>
Co-authored-by: David Chanin <chanindavgmail.com> ([`34bcfa9`](https://github.com/steering-vectors/steering-vectors/commit/34bcfa9135f2a8bbc858e5834c6c753937d4c0fe))

0.9.0

Chore

* chore: replace pre-3.10 types with modern typing, and adding linting (28)

* chore: replace pre-3.10 types with modern typing, and adding linting

* adding isort CI check

* fixing linting ([`729ea82`](https://github.com/steering-vectors/steering-vectors/commit/729ea82cb2c48bbbc7851d5601d19c242beee498))

Feature

* feat: add batch training support (30)

* feat: add batch training support

* ensure indexing tensor is on same device as model ([`625d826`](https://github.com/steering-vectors/steering-vectors/commit/625d8267ce74888ff19c92ae7507a1decceb5927))

* feat: renaming PatchOperator to PatchDeltaOperator (27) ([`f326823`](https://github.com/steering-vectors/steering-vectors/commit/f3268231dab8dfa6d7eae099871312be532c9818))

0.8.0

Chore

* chore: adding info about pytorch hooks to docs site (29) ([`5410ebe`](https://github.com/steering-vectors/steering-vectors/commit/5410ebeb1610f48c14bc98948d822577ed0a819b))

Feature

* feat: renaming prompts to strs in SteeringVectorTrainingSample (32) ([`16118a9`](https://github.com/steering-vectors/steering-vectors/commit/16118a9f704c07849e1ddffff985972d14a4d268))

0.7.0

Feature

* feat: Add aggregators for logistic and linear regression (22)

* add aggregators for logistic and linear regression

* apply pairwise mean-centering before regression and improve regression unit-tests

* proposing CR changes to add-regression-aggregator (26)

* proposing CR changes to add-regression-aggregator

* adding a test for passing sklearn_kwargs

* tweaking tensor.to call

---------

Co-authored-by: David Chanin <chanindavgmail.com> ([`a346c6f`](https://github.com/steering-vectors/steering-vectors/commit/a346c6f15c7934463b86ccce54832ad578cc791b))

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.