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

VertexModelGardenLlama using publisher model? #593

Open
wonhs91 opened this issue Nov 7, 2024 · 3 comments
Open

VertexModelGardenLlama using publisher model? #593

wonhs91 opened this issue Nov 7, 2024 · 3 comments

Comments

@wonhs91
Copy link

wonhs91 commented Nov 7, 2024

llm = VertexModelGardenLlama(
  model=MODEL,
  credentials=credentials,
  location=REGION,
  project=PROJECT_ID
)

I try to use llama3.1 model like above, and it throws the following error

HTTPStatusError: Error response 400 while fetching
  "error": {
    "code": 400,
    "message": "Project `XXXXXX` is not allowed to use Publisher Model `projects/XXXXXX/locations/REGION/publishers/meta/models/MODEL`",
    "status": "FAILED_PRECONDITION"
  }

The curl command using the same settings (model, credentials, locations, project_id) works. So I don't think it is the server issue.

@lkuligin
Copy link
Collaborator

could you share a full snippet, please?
it's working fine on my side.

@nndnha
Copy link

nndnha commented Nov 16, 2024

@lkuligin

llm = VertexModelGardenLlama(model="meta/llama-3.1-405b-instruct-maas")
ValidationError: 1 validation error for VertexModelGardenLlama
  Value error, Model meta/llama-3.1-405b-instruct-maas is not supported yet! [type=value_error, input_value={'model_name': 'meta/llam... 'default_metadata': ()}, input_type=dict]
langchain-google-vertexai==2.0.7

@jaroslav-bellus
Copy link

Could someone please add meta/llama-3.1-8b-instruct-maas, meta/llama-3.1-70b-instruct-maas, and meta/llama-3.1-405b-instruct-maas to _LLAMA_MODELS? Thanks.

cc: @lkuligin

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

No branches or pull requests

4 participants