Skip to content

Commit ac6c188

Browse files
committed
Merge branch 'main' into develop
2 parents c8950d7 + de02c8d commit ac6c188

6 files changed

Lines changed: 22 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11

2+
## releasing 1.4.0 (2025-11-30)
3+
### Overview
4+
This release introduces three new fields to the app metadata to improve the orchestration and handling of large models within apps.
5+
6+
### Additions
7+
* `analyzer_versions`: A new app metadata field (complementing the existing `analyzer_version`) designed to store version strings for multiple models wrapped in a single CLAMS app (see https://github.com/clamsproject/clams-python/issues/251#issuecomment-3566771680 for discussion).
8+
* `est_gpu_mem_min` and `est_gpu_mem_typ`: New app metadata fields that allow developers to specify estimated GPU memory usage (minimum and typical) for better resource management.
9+
10+
### Changes
11+
* Updated to the latest `mmif-python` SDK (1.2.1)
12+
* Profiling storage: Runtime profiling results (CPU/CUDA architecture, running time) are now stored under a new `appProfiling` field in the output view metadata (https://github.com/clamsproject/clams-python/pull/261).
13+
* *Note: This is an experimental field intended primarily for human inspection; its internal structure may change without notice.*
14+
* View timestamps: The `timestamp` property of views is now updated based on the time when the `_annotate()` call completes. This ensures all views from a single app execution share a consistent "marker" for easier identification (https://github.com/clamsproject/clams-python/issues/269).
15+
* Running an app that declares an `est_gpu_mem_min` value in production mode (`--production`) will now automatically limit the number of Gunicorn workers spawned to prevent GPU out-of-memory (OOM) errors.
16+
* VRAM usage record: Apps running on CUDA and `torch` now cache VRAM usage statistics in the local disk cache (typically in `$XDG_CACHE_HOME`) (https://github.com/clamsproject/clams-python/issues/243). Currently, this information is for logging only, and we plan to add a retrieval API in the future.
17+
* See current _private_ implementation at https://github.com/clamsproject/clams-python/blob/671560b184a3b73bf417db753d0fa8f1c73d3bda/clams/app/__init__.py#L348-L361
18+
219
## releasing 1.3.3 (2025-07-28)
320
### Overview
421
Updated `mmif-python` version that includes a hotfix for reading 1.0.x MMIF

build-tools/docs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def build_docs_local(source_dir: Path):
2525
print("\n--- Step 1: Installing in editable mode ---")
2626
try:
2727
run_command([sys.executable, "-m", "pip", "install", "-e", "."], cwd=source_dir)
28-
# Explicitly run schema generation to be sure
29-
run_command([sys.executable, "setup.py", "generate_schema"], cwd=source_dir)
3028
except SystemExit:
3129
print("Warning: 'pip install -e .' failed. This might be due to an externally managed environment.")
3230
print("Attempting to proceed with documentation build assuming dependencies are met...")

clams/appmetadata/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
import os
23
import shutil
34
import subprocess
@@ -523,4 +524,4 @@ def jsonify(self, pretty=False):
523524

524525

525526
if __name__ == '__main__':
526-
print(AppMetadata.schema_json(indent=2))
527+
print(json.dumps(AppMetadata.model_json_schema(), indent=2))

documentation/autodoc/clams.mmif_utils.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,3 @@ clams.mmif_utils package
22
========================
33

44
Package providing utility functions for working with MMIF data.
5-
6-
``rewind`` module
7-
-----------------
8-
9-
.. automodule:: clams.mmif_utils.rewind
10-
:members:
11-
12-
``source`` module
13-
-----------------
14-
15-
.. automodule:: clams.mmif_utils.source
16-
:members:

documentation/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
6464
# dynamically generated files
6565
exclude_patterns.extend(['cli_help.rst', 'whatsnew.md'])
66+
# this is user manual, and not part of API docs, will be used in a remote site
67+
exclude_patterns.extend(['clamsapp.md'])
6668

6769

6870
# -- Options for HTML output -------------------------------------------------

documentation/tutorial.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def tokenize(text):
2323

2424
```
2525
26-
``` python
27-
$ python
26+
``` pycon
2827
>>> import tokenizer
2928
>>> tokenizer.tokenize('Fido barks.')
3029
[(0, 4), (5, 10)]

0 commit comments

Comments
 (0)