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)
United States Trends
- 1. Cal Raleigh 3,873 posts
- 2. Aaron Judge 18.1K posts
- 3. #911onABC 6,829 posts
- 4. Justin Fields 2,690 posts
- 5. AL MVP 11K posts
- 6. Shohei Ohtani 36.1K posts
- 7. #TNFonPrime 1,808 posts
- 8. ALL RISE 10.8K posts
- 9. Purdue 5,740 posts
- 10. RIP Beef N/A
- 11. #Patriots 4,210 posts
- 12. #internetinvitational N/A
- 13. Big Dumper N/A
- 14. Under Armour 9,632 posts
- 15. Megyn Kelly 48.3K posts
- 16. #RepBX N/A
- 17. Nike 29.1K posts
- 18. Harold Landry N/A
- 19. MVPs 15.5K posts
- 20. Blue Origin 13.2K posts
Something went wrong.
Something went wrong.