Hugging Face Transformers crawling on WSL2 with CUDA Mar 15, 2023

Hugging Face Transformers crawling on WSL2 with CUDA

Ran a simple AutoModelForCausalLM generate on a T4 but got one token every five seconds.

...
langchain load_tools() throws KeyError for requests Jan 10, 2023

langchain load_tools() throws KeyError for ‘requests’

Yesterday I was wiring up a quick agent and called:

...
OpenAI API returns 429 despite backoff Dec 15, 2022

OpenAI API returns 429 despite backoff

Yesterday I was trying to run a batch job through the completions endpoint using text-davinci-003.

...
Delete AWS CloudFront Cache Automatically when Building and Deploying with CodeBuild Mar 28, 2021

I use AWS CodeBuild to build and then deploy this Hugo static site to s3. The site is also sat behind Amazon’s CloudFront CDN and after a sucessful deployment I wanted to delete the cache automatically so I could see the changes from the build immedietly.

...
BlazeMeter does not support the inline scenario configuration. Please make sure you configure the scenarios outside the execution section. Jul 3, 2019

I was recently doing some load testing for a client and when uploading our Taurus YAML tests into the Blazemeter console we recieved the following error:

...
Deploy Dotnet Core Blazor Client Side Static Site to AWS Amplify Apr 5, 2019

I have been playing around with .NET Core and Blazor recently to create a client side application. When it came to deploying the site I thought I would try using something different, in this case it was [Amazon’s Amplify] (https://aws.amazon.com/amplify/) which appears to be Amazon’s answer to Netlify.

...
Deploy Static Site to AWS on Commit Apr 5, 2019

This is a quick cheat sheet for the steps involved to create a manual pipeline to deploy a static site with CDN and HTTPS to AWS automatically on commit, the simple solution nowadays is to use [Amazon’s Amplify] (https://aws.amazon.com/amplify/) but that wasn’t around back when I had to do this, but you might also need it if you have some non standard build requirements.

...
Running a Custom Docker Image on Amazon CodeBuild Apr 5, 2019

I needed to use a custom docker image for some Dotnet Core 3 work with Amazon CodeBuild and hit into a few issues that took a bit of digging around to find, so thought I’d leave the here should anyone else need the same info.

...
Coding Quotes Apr 3, 2019

This is a dumping ground for software development quotes I have collected over the years that resonated with me (work in progress):

...
Specifying a Redis Connection String with Dot Net Core and Microsoft.Extensions.Caching.StackExchangeRedis Mar 21, 2019

The documentation seems to be a bit sparse when it comes to specifying connection strings with the Microsoft.Extensions.Caching.StackExchangeRedis NuGet package.

...