Skip to content

Dev - #1629

Open
llcourage wants to merge 25 commits into
mainfrom
dev
Open

Dev#1629
llcourage wants to merge 25 commits into
mainfrom
dev

Conversation

@llcourage

Copy link
Copy Markdown
Collaborator

Update LIT to use numpy2

Googler and others added 12 commits March 26, 2025 04:55
PiperOrigin-RevId: 740720447
PiperOrigin-RevId: 743275871
PiperOrigin-RevId: 749111685
PiperOrigin-RevId: 752850543
PiperOrigin-RevId: 758468402
PiperOrigin-RevId: 758748858
PiperOrigin-RevId: 768138158
PiperOrigin-RevId: 772786015
PiperOrigin-RevId: 795438315
PiperOrigin-RevId: 797898300
@google-cla

google-cla Bot commented Aug 27, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

superbobry and others added 13 commits November 6, 2025 08:58
The `newshape` argument to reshape is removed in NumPy 2.4.

PiperOrigin-RevId: 840699507
PiperOrigin-RevId: 860259253
PiperOrigin-RevId: 864373405
PiperOrigin-RevId: 924881300
PiperOrigin-RevId: 924925361
PiperOrigin-RevId: 944116839
PiperOrigin-RevId: 956160910
PiperOrigin-RevId: 990158213
While `LitApp` disables saving and loading datapoints when `demo_mode` is enabled and hides model and dataset creation controls in the frontend UI, the backend `/create_model` and `/create_dataset` endpoints previously did not check `self._demo_mode`. Direct HTTP requests to these endpoints on a demo server could still trigger model or dataset initialization and archive downloads via `file_cache.cached_path`. Additionally, if archive extraction in `file_cache._get_extacted_dir` failed part-way through an archive, the partially populated extraction directory remained on disk and would be returned on subsequent cache lookups.

Reject `/create_dataset` and `/create_model` requests when `self._demo_mode` is enabled in `LitApp`. In `file_cache._get_extacted_dir`, open tar archives with a context manager and clean up the extraction directory if extraction raises an exception so partial extractions are never cached.

PiperOrigin-RevId: 990350608
PiperOrigin-RevId: 990528082

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants