Skip to content

Commit

Permalink
add today's lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
goyalpramod committed Feb 17, 2025
1 parent fb5a874 commit 7f3ecdb
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _blogs/future_blogs_to_write.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ image: [add image]
- [Timeline and family tree](https://amatria.in/blog/transformer-models-an-introduction-and-catalog-2d1e9039f376/) [DONE]
- [A Brief History of Large Language Models](https://medium.com/@bradneysmith/98a1320e7650) [DONE]
{I believe the below can be clubbed together in one blog called. A very technical deep dive into LLMs, Section being, CUDA, training, inference}
- CUDA & optimising GPUs
- [Understanding triton](https://isamu-website.medium.com/understanding-the-triton-tutorials-part-1-6191b59ba4c)
Expand All @@ -37,6 +39,7 @@ image: [add image]
- [GPU puzzles](https://github.com/srush/GPU-Puzzles)
- Superfast inference with vLLMs, triton etc/ quantization
- [Fast lora implementation](https://github.dev/unslothai/unsloth)
- [Code for different optimization from unsloth](https://github.com/unslothai/unsloth/tree/main/unsloth/kernels)
- [4 bit flux](https://github.com/HighCWu/flux-4bit/blob/main/model.py)
Expand Down
50 changes: 49 additions & 1 deletion _blogs/web_development_for_MLE.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Started react from [here](https://react.dev/learn/tutorial-tic-tac-toe#setup-for
>When a function is called in the “method” syntax: object.method(), the value of this during the call is object.
>Please note that arrow functions are special: they have no this. When this is accessed inside an arrow function, it is taken from outside.
- This is just like self in python. Mostly, new is a type of constructor.
- `this` is just like self in python. Mostly, new is a type of constructor.
>The optional chaining ?. syntax has three forms:
>
Expand Down Expand Up @@ -362,4 +362,52 @@ It’s possible to extract data from nested arrays/objects, for that the left si
> So, a function can do a useful job by itself and also carry a bunch of other functionality in properties.
## Day 5
I learned about the following topics. But I have a feeling they aren't really helpful in webd. But rather very specific JS things.
Future will tell if I am correct as I build projects.
> Scheduling: setTimeout and setInterval
> Decorators and forwarding, call/apply
> Function binding
> Arrow functions revisited
> arrows functions have no this, it takes it from outside. (whichever scope comes first)
> Arrow functions:
>
> Do not have this
> Do not have arguments
> Can’t be called with new
> They also don’t have super, but we didn’t study it yet. We will on the chapter Class inheritance
> In JavaScript, all objects have a hidden [[Prototype]] property that’s either another object or null.
> We can use obj.__proto__ to access it (a historical getter/setter, there are other ways, to be covered soon).
> The object referenced by [[Prototype]] is called a “prototype”.
> If we want to read a property of obj or call a method, and it doesn’t exist, then JavaScript tries to find it in the prototype.
> Write/delete operations act directly on the object, they don’t use the prototype (assuming it’s a data property, not a setter).
> If we call obj.method(), and the method is taken from the prototype, this still references obj. So methods always work with the current object even if they are inherited.
> The for..in loop iterates over both its own and its inherited properties. All other key/value-getting methods only operate on the object itself.
> The basic class syntax looks like this:
>
> class MyClass {
> prop = value; // property
>
> constructor(...) { // constructor
> // ...
> }
>
> method(...) {} // method
>
> get something(...) {} // getter method
> set something(...) {} // setter method
>
> [Symbol.iterator]() {} // method with computed name (symbol here)
> // ...
> }
> MyClass is technically a function (the one that we provide as constructor), while methods, getters and setters are written to MyClass.prototype.
>
> In the next chapters we’ll learn more about classes, including inheritance and other features.
-->
2 changes: 1 addition & 1 deletion _notes/wl_7.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Day 6 ->

- I am almost done with the ai agents blog
- I also studied more about web development
- Given spare time I learnt a bit more about CV
- Given spare time I learnt a bit more about CV
13 changes: 13 additions & 0 deletions _notes/wl_8.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: note
title: "Weekly Lessons #8 (17.2.25 - 26.1.25)"
last_modified_at: 2025-01-19 12:00:00 +0530
categories: [lifestyle, self-help, growth]
image: assets/cover_images/img4.webp
---


## Day 1 ->

- Today I spent time collecting and writing the LLM blog
- Then continued learning js fundamentals

0 comments on commit 7f3ecdb

Please sign in to comment.