Can anyone elaborate upon the details of how ai works? Perhaps I would like to write some ai myself using pascal.
Hugging face have really comprehensive detailed documentation (
https://huggingface.co/).
To give you a really brief summary, all state-of-the-art machine learning uses feedback functions (reinforcement learning) to teach virtual neural networks to do stuff. You should keep in mind that virtual neural networks are far more simple than its biological counter part. Real neurons, for example, may suffer interference by nearby neurons. You don't need to implement that sort of thing. However, the machine will start doing usefull stuff only after a massive number of training steps. And it takes a lot resources to achieve this.
Different approachs exists. For example, you can start from zero to create a model or start by fine tunning an existing model. To start from zero, you would need a lot of data for training (OpenAI used the whole public internet in english). You also need well defined feedback functions, and a pipeline to go back, foward, and make exceptions as needed (machines can get stuck, just like humans trying to learn something new). One approach is supervised learning. Now and them, you take a look at the learning processes and make manual adjustments. Of course, you may combine supervised learning with non-supervised learning, embeeding some automation steps in the process.
GPT models learned to translate from english to other languages, to code, to summarize, to write poems, to write templates and text snnipets using specif styles, and are slowly learning math. People quickly noticed that GPT learned bad things too related to being able to assist people to commit crimes, prejudice, and the so called "fake news".