[PoC DO NOT MERGE] hfjobs uv run #7
Draft
davanstrien wants to merge 16 commits into
Draft
Conversation
- Explain what UV is and how it works with hfjobs - Add concrete hello world example with cowsay - Document key benefits for ML workflows - Set up document structure for future sections
- Add uv init --script command for creating templates - Show example output of generated script - Focus on uv add --script as recommended approach - Document alternative package indexes with vLLM example - Simplify Python version requirements section - Add links to official UV documentation
- Add 'hfjobs scripts init' to create HF dataset repos for UV scripts - Add 'hfjobs scripts push' to update scripts in existing repos - Auto-generate README with usage instructions - Add 'hfjobs-uv-script' tag for discovery - Add documentation for UV script sharing This minimal MVP makes it easy to share and run UV scripts with hfjobs
- Rename ScriptsCommand to UvCommand - Update imports in cli.py - Maintains all existing functionality
- Reset README.md to upstream version - Remove uv-script-sharing.md documentation - Documentation will be provided in PR description
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.
Most of the code was written by Claude via Claude Code. If we decide to add this feature, I will probably open a new clean PR to better align with the rest of the
hfjobscode.This PR introduces a new
hfjobs uvcommand suite focused on making it easier to run UV scripts on HF infrastructure.New subcommands:
hfjobs uv init- Create a HF dataset repository for UV scriptshfjobs uv push- Push scripts to an existing repositoryhfjobs uv sync- Sync local scripts to repositoryhfjobs uv run- Run a UV script directly on HF infrastructure (main feature)Key feature:
hfjobs uv runThe highlight is the ability to run local UV scripts with a single command:
This would require a bit of thought about how to manage a default image / suggested hardware etc. It could be possible to do via a config file(s) in the repo but I'm not sure what the best approach for this would be. I would suggest that this is something to only explore once we've seen some in the wild usage anyway to see how people are using and sharing scripts/ hfjobs.
Try it out: