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

HF Token Fixes #47

Merged
merged 3 commits into from
Jan 8, 2024
Merged

HF Token Fixes #47

merged 3 commits into from
Jan 8, 2024

Conversation

saileshd1402
Copy link
Contributor

Changes:

  • Hide HF Token in the generate command
  • Remove HF Token dependency in run command

@saileshd1402 saileshd1402 marked this pull request as draft January 3, 2024 12:41
@saileshd1402 saileshd1402 marked this pull request as ready for review January 5, 2024 05:19
gavrissh
gavrissh previously approved these changes Jan 5, 2024
@gavrissh gavrissh self-requested a review January 5, 2024 08:48
@gavrissh gavrissh dismissed their stale review January 5, 2024 08:48

new changes

"model directory",
is_dir=True,
)

if not model_params["is_custom"]:
if not model_info["repo_version"]:
model_info["repo_version"] = model_params["repo_version"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

also setting first then updating immediately? Doesn't look clean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed this to set it directly in the function


check_if_path_exists(
os.path.join(
mount_path,
Copy link
Collaborator

Choose a reason for hiding this comment

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

have a variable / helper method with path_to_model_dir set. No need to add them comma separated multiple times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

created a new function

@johnugeorge johnugeorge merged commit 4c45d3c into nutanix:main Jan 8, 2024
2 checks 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.

3 participants