Training and Learning sections are added on readme , if you want to try and run this model on your on , just copy my codebase
get into the folder and write these instructions in terminal
>python datasetpy
>python trainpy
>python inferencepy (for generation)
#Aienginner#llms
Day-21 of mastering Deep Learning
(wrapping up our Transformer)
7hr->300iterations ->model is generating sensable words on train data
if you are able to understand how a tensor converted from input token to final learned contextual token then you got how llm process every word.
Unable to post my daily log last day because i was traveling,
Try to do it today again and one more thing why X is treating me like I am going leave this app
Check it out on github (Transformer architecture with kv-cache(inference) with GroupedQueryAttention with byte pair encoding) from scratch --->
https://t.co/ZCBJMi3nyp
Training and Learning sections are added on readme , if you want to try and run this model on your on , just copy my codebase
get into the folder and write these instructions in terminal
>python datasetpy
>python trainpy
>python inferencepy (for generation)
#Aienginner#llms
Why some ppl says that Ai can take over the world in the way humans cannot ,the reason is PATTERNS,everything in this world follows a pattern the birth and death of human,calamity, thoughts but these patterns are so hard to capture except one thing WHO BORN through these patterns
Day-21 of mastering Deep Learning
(wrapping up our Transformer)
7hr->300iterations ->model is generating sensable words on train data
if you are able to understand how a tensor converted from input token to final learned contextual token then you got how llm process every word.
Day-20 of mastering Deep Learning
Spend whole day in learning optimization methods:
1. Cosine Learning rate decay
2. Gradient accumulation techinique
3. Gradient clipping
4. Temperature sampling
Updated readme file👇
Next up: Train it for 6-8 hours and record the results...
I am little confused rn what should I start Gen ai or cpp?
Cpp for dsa and I also want learn gpu programming ( getting curious about how things work under the hood )
If you are at my place what will you prefer ?
Initially it was my plain because i was training it on 7k examples but then it starts overfit and the only option left is to inc the no of training examples , but then it becomes slow , so now we are doing it one final time
Num_embed=256 , heads=8 , layers=6 , x=10k , iters=100
Day-20 of mastering Deep Learning
Spend whole day in learning optimization methods:
1. Cosine Learning rate decay
2. Gradient accumulation techinique
3. Gradient clipping
4. Temperature sampling
Updated readme file👇
Next up: Train it for 6-8 hours and record the results...
Day-19 of mastering Deep Learning
Updated my (transformer architecture from scratch):-
implemented KV_cache mechanism
MHA -> GQA
vanilla pos_encoding -> RoPE
Regular padding -> Dynamic padding (collate fn)
Few more optimization left before closing this project
#buildinpublic
Day-16 of mastering Deep Learning
not a daam good day busy in some house's work
but in the evening started
kv-cache in llms by sebastian raschka
goated man and goated blog
although i have not implement the whole code base but i did it with the main cache part (need more pra)