Merged
Conversation
- Support running UV scripts directly from URLs - Add HfApi token parameter for proper authentication - Update README with URL usage example
lhoestq
approved these changes
Jul 10, 2025
Owner
lhoestq
left a comment
There was a problem hiding this comment.
LGTM ! Let me know if you'd like to do more changes but IMO this can be integrated as is :)
Contributor
Author
|
Good to merge from my side. I can copy the env etc. logic from run.py. will
do that first thing tomorrow
…On Thu, 10 Jul 2025, 17:20 Quentin Lhoest, ***@***.***> wrote:
***@***.**** approved this pull request.
LGTM ! Let me know if you'd like to do more changes but IMO this can be
integrated as is :)
------------------------------
In hfjobs/commands/uv.py
<#8 (comment)>:
> + run_parser.add_argument(
+ "-e", "--env", action="append", help="Environment variables"
+ )
+ run_parser.add_argument(
+ "-s", "--secret", action="append", help="Secret environment variables"
+ )
you can also copy paste the --env-file and --secret-env-file logic from
run.py
(I can also do it when integrating in huggingface/huggingface_hub#3211
<huggingface/huggingface_hub#3211>)
—
Reply to this email directly, view it on GitHub
<#8 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEUI5K334XU2T3AFD5JY4L3H2HE5AVCNFSM6AAAAACBEROUKKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTAMBWGQZTAMJYGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Contributor
Author
|
@lhoestq think this is ready now! I did add a warning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP adds a super minimal MVP version of the UV run (will keep #7 for further UX experiments with different workflows, etc.).
Usage
What are UV scripts?
UV scripts are Python scripts with inline dependencies. Here's a simple example:
Examples
Supports running from a local Python file:
And from a public URL:
Note on private repositories
Currently, it only supports using a public repository for the ephemeral storage of scripts. I would suggest we start with that for the launch and add a
--privateflag post-launch. @lhoestq WDYT?