I will give python code which creates ai model, trains model and chats with model


About this gig
I offer 3 types of codes for AI. First code creates AI model of size you choose, it can be 1 million parameters, 1 billion parameters, any size. Then it trains the model on "knowledge.txt" file located in same folder as code. You put training data in "knowledge.txt" file. Works with even small data. Uses random batches to drastically speed up training and efficiency. You can choose context size for AI, temperature, batch size, number of training steps, all AI model parameters, learning rate. These are all at start of a code to make editing them easier. Code likewise allows you to set vocabulary size, so you can pick any size of vocabulary which AI will use.
Second code for AI is similar, just uses knowledge.json instead of txt knowledge file, in case you want to train on json instead of txt. But this code is also independent and works on its own.
Third code uses AI with word level tokenizer as opposed to subword.
These 3 codes are independent. Each works on its own.
Get to know Admir M.
Basic work
- FromBosnia and Herzegovina
- Member sinceFeb 2026
Languages
English, Bosnian
