Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hf:// as an alias to huggingface:// #324

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Add hf:// as an alias to huggingface:// #324

merged 1 commit into from
Oct 18, 2024

Conversation

ericcurtin
Copy link
Collaborator

Also check start of string contains :// , by checking if start of the string simply starts with things like "hf", "ollama", etc. we are kinda polluting the namespace and not allowing models to start with these terms.

@ericcurtin
Copy link
Collaborator Author

Haven't run tests locally, must keep an extra eye on the builds

@ericcurtin ericcurtin force-pushed the hf-abbrev branch 2 times, most recently from 75364ee to 45fb612 Compare October 17, 2024 15:48
try:
return subprocess.run(args, check=True, cwd=cwd, stdout=subprocess.PIPE, stderr=stderr)
except Exception:
perror(f"subprocess.run({args}, check=True, cwd={cwd}, stdout=subprocess.PIPE, stderr=stderr)")
Copy link
Member

Choose a reason for hiding this comment

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

This line here is for debugging? It is causing tests to fail. The docker error is caught above and ignored.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll remove it, it was for debugging, I was hoping to keep it in, but will remove for now

Also check start of string contains :// , by checking if start of
the string simply starts with things like "hf", "ollama", etc. we
are kinda polluting the namespace and not allowing models to start
with these terms.

Signed-off-by: Eric Curtin <[email protected]>
@ericcurtin ericcurtin force-pushed the hf-abbrev branch 2 times, most recently from 121d56e to 25335fc Compare October 18, 2024 15:20
@rhatdan
Copy link
Member

rhatdan commented Oct 18, 2024

LGTM

@rhatdan rhatdan merged commit 07a53c4 into main Oct 18, 2024
22 checks passed
@ericcurtin ericcurtin deleted the hf-abbrev branch October 18, 2024 18:10
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