Skip to content

Commit 5d757cc

Browse files
authored
Merge pull request #207 from EthoML/dev
dev
2 parents 3eafa77 + 0efa70a commit 5d757cc

18 files changed

Lines changed: 118 additions & 1254 deletions

.clinerules

Lines changed: 0 additions & 159 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# v0.12.1
2+
3+
### Fixes
4+
5+
- Add Apple Silicon (MPS) GPU support
6+
- Centralize device detection in `get_device()` utility
7+
8+
19
# v0.12.0
210

311
### Fixes

docs/vame-docs-app/docs/reference/model/evaluate.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: model.evaluate
77

88
#### logger
99

10-
#### use\_gpu
10+
#### DEVICE
1111

1212
#### create\_reconstruction\_plot
1313

@@ -48,7 +48,6 @@ Saves the plot to:
4848

4949
```python
5050
def eval_temporal(config: dict,
51-
use_gpu: bool,
5251
model_name: str,
5352
fixed: bool,
5453
snapshot: Optional[str] = None,
@@ -60,7 +59,6 @@ Evaluate the temporal aspects of the trained model.
6059
**Parameters**
6160

6261
* **config** (`dict`): Configuration dictionary.
63-
* **use_gpu** (`bool`): Flag indicating whether to use GPU for evaluation.
6462
* **model_name** (`str`): Name of the model.
6563
* **fixed** (`bool`): Flag indicating whether the data is fixed or not.
6664
* **snapshot** (`str, optional`): Path to the model snapshot. Defaults to None.

docs/vame-docs-app/docs/reference/model/rnn_vae.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Log every N batches
1919

2020
Set to True to log parameter histograms
2121

22-
#### use\_gpu
22+
#### DEVICE
2323

2424
#### reconstruction\_loss
2525

docs/vame-docs-app/docs/reference/util/auxiliary.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,20 @@ Gets the VAME package version from pyproject.toml.
1919

2020
* `str`: The version string.
2121

22-
#### check\_torch\_device
22+
#### get\_device
2323

2424
```python
25-
def check_torch_device() -> bool
25+
def get_device() -> torch.device
2626
```
2727

28+
Detect the best available compute device.
29+
30+
Checks for CUDA, then MPS (Apple Silicon), then falls back to CPU.
31+
32+
**Returns**
33+
34+
* `torch.device`: The selected device.
35+
2836
#### \_convert\_enums\_to\_values
2937

3038
```python

memory-bank/activeContext.md

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)