build_aiapp's profile picture. Build AI apps & models like ChatGPT  | ML, no-code AI & app dev tutorials | Launch your AI project! | DM for collabs

Build AI app

@build_aiapp

Build AI apps & models like ChatGPT | ML, no-code AI & app dev tutorials | Launch your AI project! | DM for collabs

Alright guys 👋 for anyone new here — quick recap! We’re building a small language model 🧠 using PyTorch to learn and generate text. In the previous post, you can watch the video where we showed how to implement the optimizer ⚙️. Now, we’ll pass code in next post


Okay guys, let's see on video how we implement the optimizer⚙️ and in next posts we will explain on high level and then in more detail what we did👨‍💼


Here we create a tensor(array) of shape(1,1) filled with 0. Think of it as a 1x1 starting token. dtype = torch.long means use integer IDs. PyTorch need this format because token ID must be stored as integers(numbers)

build_aiapp's tweet image. Here we create a tensor(array) of shape(1,1) filled with 0.
Think of it as a 1x1 starting token. dtype = torch.long means use integer  IDs. PyTorch need this format because token ID must be stored as integers(numbers)

United States Trends

Loading...

Something went wrong.


Something went wrong.