[#Script #Coding] Code DeepSeek V3 From Scratch in Python – Full Course

Spread the love

Code DeepSeek V3 From Scratch in Python – Full Course

By freeCodeCamp.org
Published: Apr 01, 2025


freeCodeCamp.org This course is a comprehensive guide to understanding and implementing DeepSeek V3, a cutting-edge deep learning model. @vukrosic shares step-by-step coding instructions and theoretical insights.

???? paper – https://arxiv.org/pdf/2412.19437

???? https://github.com/deepseek-ai/DeepSeek-V3/tree/main/inference – code by DeepSeek, just a few small changes made at the end of the video to Transformer class to for training, as this is for inference, so you need to make them manually or screenshot the video and ask AI to make the changes to this code

?? Try interactive AI courses we love, right in your browser: https://scrimba.com/freeCodeCamp-AI (Made possible by a grant from our friends at Scrimba)

?? Contents ??
?? (0:00:00) Intro
?? (0:01:40) Attention Mechanism
?? (0:13:34) Query, Key, Value
?? (0:34:11) KV Cache
?? (0:39:06) Multihead Latent Attention (MLA)
?? (0:58:53) Coding MLA
?? (1:28:41) RoPE
?? (1:55:44) Coding KV Cache
?? (2:00:25) MLA forward
?? (2:28:24) MoE, Gate
?? (2:49:25) Gate code
?? (3:09:10) MoE code
?? (3:28:36) Transformer Blocks

???? Thanks to our Champion and Sponsor supporters:
???? Drake Milly
???? Ulises Moralez
???? Goddard Tan
???? David MG
???? Matthew Springman
???? Claudio
???? Oscar R.
???? jedi-or-sith
???? Nattira Maneerat
???? Justin Hual

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news


Spread the love
Proudly powered by WordPress
Creative Commons License
EricBrooks.Com® is licensed under a Creative Commons License.

Disclaimer: The views expressed herein are solely those of Eric Brooks. They do not necessarily reflect those of his employers, friends, contacts, family, or even his pets (though my cat, Puddy, seems to agree with me on many key issues.). In accordance to my terms of use, you hereby acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly with every visit. As the user, you also acknowledge that the author has been legally declared a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not responsible for any of his actions. ALSO, the political views and products advertised on this site may/may not reflect the views of Puddy or myself, so please don't take them as an endorsement. We just need to eat.


Connect