Skip to content

Cache (3/5): Cache inference across model providers - #123

Merged
ErlisLushtaku merged 10 commits into
mainfrom
cache-on-118/03-providers
Sep 22, 2026
Merged

ErlisLushtaku merged 10 commits into
mainfrom
cache-on-118/03-providers

Conversation

@ErlisLushtaku

@ErlisLushtaku ErlisLushtaku commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Extends cache descriptors and input hashing across the providers exposed by make_model.

  • Covers VLLM, OpenRouter, Dummy, ChatOpenAI, OpenAI, Together, and LlamaCpp.
  • Records whether the backend receives chat messages or flattened text.
  • Includes hosted endpoints, OpenRouter routing when present in extra_body, and output-affecting model settings.
  • Excludes VLLM execution-only settings (tensor_parallel_size, gpu_memory_utilization, enforce_eager).
  • Unsupported providers stay uncached.

This is stacked on #122.

@ErlisLushtaku
ErlisLushtaku force-pushed the cache-on-118/02-do-inference branch from 97138e9 to 965bacf Compare September 9, 2026 13:01
@ErlisLushtaku
ErlisLushtaku force-pushed the cache-on-118/03-providers branch from df52a6d to e28ee43 Compare September 9, 2026 13:01
@ErlisLushtaku ErlisLushtaku changed the title Cache: WIP (3/6) Cache inference across model providers Cache: WIP (3/5) Cache inference across model providers Sep 9, 2026
@ErlisLushtaku ErlisLushtaku changed the title Cache: WIP (3/5) Cache inference across model providers Cache (3/5): Cache inference across model providers 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/02-do-inference branch from 58f0f59 to 969347c Compare September 15, 2026 12:54
@kargibora
kargibora force-pushed the cache-on-118/03-providers branch from 595f5ce to 1389840 Compare September 15, 2026 12:54
Comment thread judgearena/inference.py
Comment thread judgearena/models.py
return engine_kwargs


_VLLM_ONLY_KWARGS = (

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 with this design. It is very hard-coded. Do we really need to check this?
(Even if this exist or introduced before)

@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.

I agree it seems not very general, but I kept this because shared engine_kwargs can include vLLM-only settings for hosted providers, which would otherwise receive them as request parameters. If you have any different idea how to address this, let me know.

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.

Yes I agree. Perhaps this is a matter of another PR.

Comment thread judgearena/inference.py
@ErlisLushtaku
ErlisLushtaku changed the base branch from cache-on-118/02-do-inference to main September 22, 2026 22:30
@ErlisLushtaku
ErlisLushtaku merged commit 7f6800f 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