Skip to content

Bedrock issues with running models and importing custom model

0

I am having issues with both running models on playground and with importing custom models from an s3 bucket. I have tried talking multiple times with the account and billing support team who forwarded my ticket (multiple times) to the service team. The responses received never solved the issue.

I keep getting issues such as

  1. "failed to fetch", "the provided model identifier is invalid" and "operation not allowed" when trying to use gpt-oss 20b in the playground with a system prompt and chat prompt (and even without system prompt as well).
  2. When trying to import a custom model from an s3 bucket, I get the following error : "Your account is not authorized to perform this action. Please create a support case (https://console.aws.amazon.com/support/home ) with details about your use case and we will get back to you." The custom models in question are found in hugging face and their underlying model architecture are those supported by bedrock.
  3. When I try to enable model access in bedrock, I am only able to do so for the OpenAI open weight models, but none of the models from any other provider, regardless of the AWS region.

The first update I received from the srevice team within my ticket mentioned that I should be able to access the custom model import feature in the supported regions (including Oregon) without special permissions. The 2nd update mentioned that the issue had been escalated to the program engineering team, but there has not been any further update in nearly a week. As part of that correspondence, the service team recommended posting to this platform.

1 Answer
-1

Based on the issues you're describing, it appears you're facing multiple access-related problems with Amazon Bedrock. Let me address each of your concerns:

  1. For the errors like "failed to fetch," "the provided model identifier is invalid," and "operation not allowed" when trying to use models in the playground: These errors typically occur because you need to explicitly request access to specific foundation models before you can use them in Amazon Bedrock. Even with an active AWS account, you need to go through a model access approval process. Navigate to the Amazon Bedrock console, go to the "Model access" section, select the specific models you want to use, and submit a request for access. You'll need to wait for approval before you can use them in the playground.

  2. Regarding the custom model import error: When importing custom models, you need to ensure you have all the required files in the proper format. For Hugging Face models, you typically need:

  • .safetensors file (model weights in supported formats: FP32, FP16, or BF16)
  • config.json
  • tokenizer_config.json
  • tokenizer.json
  • tokenizer.model

If any of these files are missing or in an incompatible format, the import will fail. Additionally, make sure all files are at the root level of your S3 bucket.

  1. For the model access issue: It's unusual that you can only enable access to OpenAI open weight models but not others. This could indicate an account-level restriction or regional availability issue. Different models may have different availability across regions, so you might want to try requesting access in different supported regions.

Since you've already opened a support case and it's been escalated to the program engineering team, I recommend following up on that ticket for a definitive resolution. In the meantime, double-check that your IAM permissions include the necessary Bedrock permissions and that you're following the correct procedures for requesting model access.
Sources
ERROR in Bedrock playground: You have not filled out the request form. Fill out the form before getting access. | AWS re:Post
"Invalid Model Identifier Error in Amazon Bedrock and Unable to Request Specific Models" | AWS re:Post
Difficulties Accessing AWS Bedrock Models from AWS lambda | AWS re:Post
Issue importing magistral in AWS bedrock, cannot find model weight file | AWS re:Post

answered a year ago

  • Thank you for the response.

    RE:

    1. I already have "acess granted" to the open weight Open AI models, but still face the issue while trying to run the gpt-oss 20b model in playrgound. Similarly, in the model access section, I am unable to change the access type of any other model. All of them appear as "unavailable" (except for the open AI ones) and there are multiple banner errors on the page saying "The provided model identifier is invalid" whenever I load the model access section.
    2. I have ensured that all the required files are present for custom model imports, however the issue is more the one I mentioned in my above post, i.e. the error message stating "Your account is not authorised to perform this action."
    3. I have tried changing model access across different regions with the same issue. Even the correspondence provided by the service team recommended the use of US West Oregon where all the relevant models are available. Same error occurs regardless.
    4. I have tried with both the root user and the IAM user. The IAM user should have full permissions across the AWS services

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.