بالمناسبه دى اى حد مهتم بالtokenization لازم يتفرج على الفيديو ده
https://t.co/bRStbG8H1L
بتاع karpathy كان شغال فى openAI و Telsa
الفيديو بادى من الاسكراتش زى utf8 و BPE algorithm لحد ما يبنى tokenizer و بيوضح ليه كان فى llms مثلا بتغلط فى reverse a word و حاجات تانيه كتير
@AMR_SHAMS07@nolimit3esa Okay now the return is a slice of len 2 cap 7 so when we append 5 it will fit in the slice and GC won’t reclaim anything as original slice is still referenced
@mohabyaser0 لسه شايف كومنت بيتكلم فى الموضوع ده على ريديت لحد عمل interviews كتير قبل كده و الملخص انه بيفضل تقول بس i don’t know عن تخمينك الكتير و شايف انه ميزه كمان
@AMR_SHAMS07@nolimit3esa I will assume it is data[3:5:5] then in f func,
Data on the heap
Nothing happens to data and no GC reclaimation
In main
The data has cap 2
when we append 5 to it , a new slice will be allocated and data will points to it
when GC is on again the old slice will be reclaimed