Files
Tai An d1193e39a2 fix(scripts): repair requests_caching.py entrypoint (bad kwargs + helper defined after use) (#4059)
The `__main__` block passed `model=` and `device=` to
`run_model_for_task_caching()`, whose signature is
`(tasks, cache_requests)` -- both are read from module constants inside
the function, so the call raised
`TypeError: run_model_for_task_caching() got an unexpected keyword
argument 'model'` before anything ran.

With that fixed the script then failed with
`NameError: name 'request_caching_arg_to_dict' is not defined`,
because that helper was defined *below* the `__main__` block and so was
not yet bound when the block executed.

Drop the two extra keyword arguments and move the helper above the
`__main__` block, next to its only caller.
2026-08-29 00:35:12 +05:00
..
2021-05-12 17:03:29 +10:00
2025-02-21 06:23:59 +05:00
2023-12-20 09:14:46 -05:00
2025-02-21 06:23:59 +05:00
2025-02-21 06:23:59 +05:00
2026-02-14 02:32:45 +05:00