Increase max input length for HuggingFace model in SageMaker deployment


I deployed HuggingFace zephyr-7b-beta model to SageMaker by using the default deploy.py script. When trying to invoke the model endpoint, I received the error "ValueError: Error raised by inference endpoint: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (422) from primary with message "{"error":"Input validation error: inputs must have less than … Continue reading Increase max input length for HuggingFace model in SageMaker deployment

Git broken after Upgrade to Mojave (10.14.5)


Second issue that I have found after upgrade my mac to Mojave is that Git stops working. When run git in terminal, it throws the error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun This means the command line tools of Xcode is not working properly. It needs either reset or update. … Continue reading Git broken after Upgrade to Mojave (10.14.5)