Skip to content

Cache (5/5): Synchronize inference caches through Hugging Face - #127

Merged
ErlisLushtaku merged 18 commits into
mainfrom
cache-on-118/05-hf-sync
Sep 22, 2026
Merged

ErlisLushtaku merged 18 commits into
mainfrom
cache-on-118/05-hf-sync

Conversation

@ErlisLushtaku

@ErlisLushtaku ErlisLushtaku commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds an explicit CLI for sharing inference caches through a Hugging Face dataset repository.

  • Fetches and pushes folders filtered by role, task and optional model.
  • Validates descriptors and merges duplicate input hashes by the latest pushed_at.
  • Uploads metadata.json and the SQLite database in one commit.
  • Retries parent-commit conflicts after fetching and merging the newer remote rows.
  • Documents local caching and the fetch/push commands in the README.

Synchronization remains separate from benchmark execution. The Parquet store, migration scripts, and cache browser from #71 are intentionally left out.

This is stacked on #124.

@ErlisLushtaku ErlisLushtaku changed the title Cache: WIP (5/5) Synchronize inference caches through Hugging Face Cache (5/5): Synchronize inference caches through Hugging Face Sep 15, 2026
@ErlisLushtaku
ErlisLushtaku marked this pull request as ready for review September 15, 2026 07:40
@kargibora
kargibora force-pushed the cache-on-118/04-runners branch from 1cc01a3 to b5ca140 Compare September 15, 2026 12:54
@kargibora
kargibora force-pushed the cache-on-118/05-hf-sync branch from 37c82fe to e5cd5a1 Compare September 15, 2026 12:54

@kargibora kargibora left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just a several comments

Comment thread judgearena/cache/hf.py
@@ -0,0 +1,295 @@
"""Filtered Hugging Face synchronization for inference-cache folders."""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure whether we shoudl expose this in judgearena/ perhaps it is better to put this to judgearena/utils or judgearena/cache/... (similarly other materials into this as well as we introduce more cache specific things, it makes more sense to create seperate package for it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(If we want to expose it as cache it makes sense to me that this stays under judgearena but still wanted to discuss)

@ErlisLushtaku ErlisLushtaku Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, moved the cache CLI to judgearena/cache/hf.py and updated the entry point to judgearena.cache.hf:cli. The other cache-specific modules now live under the same package.

@ErlisLushtaku
ErlisLushtaku changed the base branch from cache-on-118/04-runners to main September 22, 2026 22:33
@ErlisLushtaku
ErlisLushtaku merged commit 939c425 into main Sep 22, 2026
1 check passed
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.

2 participants