You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## Unreleased
9
9
10
10
- Added the arXiv paper to the PyMUSAS BEM model readme, `model_readmes/pymusas_bem.md`, of which this did require the Bib text to be Python string variable in the convert and upload script `scripts/convert_and_upload_bem_model.py`.
11
+
- Changed the [./pyproject.toml](./pyproject.toml) so that local developers can easily install different versions of torch, i.e. cpu or different cuda versions.
12
+
- Updated the [./.github/workflows](./.github/workflows) to use specific GitHub action versions, this should make the workflow more secure.
13
+
- Updated the [./.devcontainer](./.devcontainer) files so that they use the correct version of torch.
Here we list the various WSD models we have implemented and how to use them.
@@ -209,6 +216,25 @@ When developing on the project you will want to install the Python package local
209
216
uv sync
210
217
```
211
218
219
+
This version of `uv sync` will install the CPU version of `torch` to install a `cuda` version, i.e. `cuda 12.8` run the following:
220
+
221
+
```bash
222
+
uv sync --no-group cpu --group cu128
223
+
```
224
+
225
+
Currently we support `cu126`, `cu128`, and `cu130`, see the [./pyproject.toml](./pyproject.toml) for more information.
226
+
227
+
228
+
**NOTE** if using `--no-group cpu --group XXX` then each time you use `uv run` you need to use `uv run --no-group cpu --group XXX`
229
+
230
+
We have made it slightly simpler with `make` at least for `cu128` (which can be used as template for the other versions) with:
231
+
232
+
```bash
233
+
make run-cu128 CMD="python ANY OTHER ARGUMENTS"# Runs Python or any other command that you would after `uv run`
234
+
make tests-cu128 # Runs the tests
235
+
make lint-cu128 # Runs the linting
236
+
```
237
+
212
238
### Running linters and tests
213
239
214
240
This code base uses isort, flake8 and mypy to ensure that the format of the code is consistent and contain type hints. ISort and mypy settings can be found within [./pyproject.toml](./pyproject.toml) and the flake8 settings can be found in [./.flake8](./.flake8). To run these linters:
0 commit comments