Skip to content

Commit

Permalink
Python 3.10 support (#13)
Browse files Browse the repository at this point in the history
* step down to 3.10
* matrix test 3.10
* update changelog
* add python version badge and some other badges to README
  • Loading branch information
vgel authored Mar 5, 2024
1 parent ffcfb3c commit 4b840f2
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

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

## 0.2.0 - 2024-03-03

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# repeng

[![PyPI version](https://badge.fury.io/py/repeng.svg)](https://badge.fury.io/py/repeng)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/vgel/repeng/ci.yml?label=ci)
![PyPI - Version](https://img.shields.io/pypi/v/repeng)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/repeng)
![GitHub License](https://img.shields.io/github/license/vgel/repeng)

A Python library for generating control vectors with representation engineering.
Train a vector in less than sixty seconds!
Expand Down
2 changes: 1 addition & 1 deletion notebooks/vector_ops.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
33 changes: 31 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Theia Vogel <theia@vgel.me>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
python = ">=3.10,<3.12" # `accelerate` doesn't support 3.12 yet
numpy = "^1.26.3"
scikit-learn = "^1.4.0"
torch = "^2.1.2"
Expand Down

0 comments on commit 4b840f2

Please sign in to comment.