I want a teach a neural network how to play Tetris. source code: https://github.com/opyate/neuro-evolved-tetris video: https://youtu.be/rji6zOQgJZs What are the possible approaches? A supervised learning approach could be that I record a Tetris world champion playing lots and lots of games, then create a large labelled dataset, then train a model on said dataset. However, that’s a lot of work, and…
We investigate using a local large language model (LLM) to replace Github Copilot. We’ll use the StarCoder2 model from HuggingFace , as it is quite new and shows great promise, and we’ll host it with ollama , which just a few hours ago announced support for StarCoder2. Then we point VSCode to ollama + StarCoder2 using the Continue VSCode extension . Ollama We start by downloading ollama. wget…
Here we show how to get Google Vision to run OCR on a PDF in Google Storage using NodeJS. Firstly, install the SDK. npm install --save @google-cloud/vision Here’s the code. It will grab the PDF (or TIFF - the other supported format) from the location gcsSourceUri and once completed, put the OCR JSON in the location gcsDestinationUri . const vision = require('@google-cloud/vision') function ocr() {…