Closed sunnyszy closed 8 months ago
We just added Bedrock support, still working on it. My hypothesis would be a permission issue, happened to me when I initially tried. You can try adding something here to get more information about the actual underlying exception / issue: https://github.com/plasma-umass/cwhy/blob/5455c0b06147aaf74b70adffde9cc81a7fd31d9a/src/cwhy/cwhy.py#L188-L190
import traceback
traceback.print_exc()
I'll take a look at improving error messages tomorrow.
(More information about permissions here: https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html)
Fixed. Sorry I used a wrong key. Maybe later you can add an explict check for key validation?
Analysis from bedrock/anthropic.claude-v2:1:
--------------------------------------------
It looks like your model is running into an issue with the Neuron compiler
where there is an out of bounds access pattern. Specifically, this error:
Reason: Access pattern out of bound. Instruction: I-46 Opcode: Save Argument AP: Access Pattern: [[3,4],[3,1],[1,3]]
Indicates that an instruction in the compiled graph is trying to save data using
an access pattern that goes out of bounds of the target memory location.
Some things you could try to resolve this:
- Simplify the model to remove complex access patterns. For example, flatten
large multi-dimensional tensors before operations.
- If using strided slicing, try removing that or changing to simpler slicing.
- If multiple slices/indices into a tensor, try consolidating into one slice.
- Try reducing the batch size or dimensions of your tensors to simplify sizes.
- Print out and inspect the shape of your tensors before problematic operations
to ensure sizes are what you expect.
- Upgrade to latest Neuron SDK in case bug fixes help.
- Report the issue to AWS for investigation in case it is a compiler bug.
(Total cost: approximately $0.03 USD.)
NoneType: None
==================================================