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

AQUA Fetch HF Model Details #826

Merged
merged 1 commit into from
May 9, 2024

Conversation

mrDzurb
Copy link
Member

@mrDzurb mrDzurb commented May 9, 2024

Description

https://jira.oci.oraclecorp.com/browse/ODSC-56763
https://jira.oci.oraclecorp.com/browse/ODSC-56565

Implements:

  • [BYOM][API] Check Internet Access.
  • [BYOM][API] Fetch HF Model Details.

Test

GET

http://localhost:8888/aqua/network_status

image

POST

http://localhost:8888/aqua/model/hf/search

BODY

{
  "model_id": "codellama/CodeLlama-7b-Instruct-hf"
}

image

NEGATIVE
image

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 9, 2024
model_id_lower = model_id.lower().replace(f"{author}/", "")
author_lower = author.lower()

compartment_id = self.get_argument("compartment_id", default=None)
Copy link
Member

Choose a reason for hiding this comment

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

are we listing service models or UI is expected to pass compartment id / project id to list models in user compartment?

Copy link
Member Author

Choose a reason for hiding this comment

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

The service models only. I copied this logic from models handler. I don't have a strong opinion here, it might be useful for some testing.

@mrDzurb mrDzurb merged commit 3ea9dd5 into feature/aquav1.0.2 May 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants