700cc (@acc7ac) header
700cc (@acc7ac) profile picture
Joined March 2020
Photo by 700cc (@acc7ac)Photo by 700cc (@acc7ac)
700cc retweeted
这个60分钟的教程,@steveschoger 大神把使用Claude Code的所有方法和细节,给你拆得明明白白
22
434
5
1,438
93,949
9 Distance Measures in data science with algorithms (v/@gp_pulipaka).
25
547
14
3,121
263,412
Destined One! Our first event campaign is about to conclude. Don't miss your chance to explore Sun Wukong's story and get exclusive rewards. Event 1: Submit videos for a chance to win a RTX 4070 Super Graphics Card, Official Merch, Collaboration Opportunity! Event 2: Follow us and retweet this post for a chance to win Official Merch! Note: 18+ only. No language/country restrictions. Ends on June 23. For more details: bit.ly/BlackMythWukongMythol… #BlackMythWukong #Wukong #Monkeyking
Destined One, come embark on this journey with us in our first ever exclusive campaign! Explore the mythology surrounding Sun Wukong and immerse yourselves in the rich world of mythology. Event 1: Submit videos for a chance to win a RTX 4070 Super Graphics Card, Official Merch, Collaboration Opportunity! Event 2: Follow us and retweet this post for a chance to win Official Merch! Note: 18+ only. No language/country restrictions. Ends on June 23. For more details: bit.ly/BlackMythWukongMythol… #BlackMythWukong #Wukong #Monkeyking
274
984
41
2,560
374,613
The push-forward operator is a linear map between measures that operates by displacement of the support of the points. Corresponds to the composition of a random vector by a function, and to the change of variable formula of integration. en.wikipedia.org/wiki/Pushfo…
3
105
2
675
35,371
Monte Carlo integration approximates integrals at a rate of 1/sqrt(n), independent of the dimension. en.wikipedia.org/wiki/Monte_…
17
338
12
1,933
248,544
SORA by Hand ✍️ OpenAI’s #SORA took over the Internet when it was announced earlier this year. The technology behind Sora is the Diffusion Transformer (DiT) developed by William Peebles and Shining Xie. How does DiT work? 𝗚𝗼𝗮𝗹: Generate a video conditioned by a text prompt and a series of diffusion steps [1] Given ↳ Video ↳ Prompt: "sora is sky" ↳ Diffusion step: t = 3 [2] Video → Patches ↳ Divide all pixels in all frames into 4 spacetime patches [3] Visual Encoder: Pixels 🟨  → Latent 🟩 ↳ Multiply the patches with weights and biases, followed by ReLU ↳ The result is a latent feature vector per patch ↳ The purpose is dimension reduction from 4 (2x2x1) to 2 (2x1). ↳ In the paper, the reduction is 196,608 (256x256x3)→ 4096 (32x32x4) [4] ⬛ Add Noise ↳ Sample a noise according to the diffusion time step t. Typically, the larger the t, the smaller the noise. ↳ Add the Sampled Noise to latent features to obtain Noised Latent. ↳ The goal is to purposely add noise to a video and ask the model to guess what that noise is. ↳ This is analogous to training a language model by purposely deleting a word in a sentence and ask the model to guess what the deleted word was. [5-7] 🟪 Conditioning by Adaptive Layer Norm [5] Encode Conditions ↳ Encode "sora is sky" into a text embedding vector [0,1,-1]. ↳ Encode t = 3 to as a binary vector [1,1]. ↳ Concatenate the two vectors in to a 5D column vector. [6] Estimate Scale/Shift ↳ Multiply the combined vector with weights and biases ↳ The goal is to estimate the scale [2,-1] and shift [-1,5]. ↳ Copy the result to (X) and (+) [7] Apply Scale/Sift ↳ Scale the noised latent by [2,-1] ↳ Shifted the scaled noised latent by [-1, 5] ↳ The result is "conditioned" noise latent. [8-10] Transformer [8] Self-Attention ↳ Feed the conditioned noised latent to Query-Key function to obtain a self-attention matrix ↳ Value is omitted for simplicity [9] Attention Pooling ↳ Multiply the conditioned noised latent with the self-attention matrix ↳ The result are attention weighted features [10] Pointwise Feed Forward Network ↳ Multiply the attention weighted features with weights and biases ↳ The result is the Predicted Noise 🏋️‍♂️ 𝗧𝗿𝗮𝗶𝗻 [11] ↳ Calculate MSE loss gradients by taking the different between the Predicted Noise and the Sampled Noise (ground truth). ↳ Use the loss gradients to kick off backpropagation to update all learnable parameters (red borders) ↳ Note the visual encoder and decoder's parameters are frozen (blue borders) 🎨 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲 (𝗦𝗮𝗺𝗽𝗹𝗲) [12] Denoise ↳ Subtract the predicted noise from the noised latent to obtain the noise-free latent [13] Visual Decoder: Latent 🟩 → Pixels 🟨 ↳ Multiply the patches with weights and biases, followed by ReLU [14] Patches → Video ↳ Rearrange patches into a sequence of video frames.
37
438
36
2,509
238,610
I'm an Accepted Author of the 2024 IEEE International Symposium on Biomedical Imaging (ISBI)! Join me in Athens, Greece, from 27-30 May 2024. #ISBI2024 invt.io/1txbjxjl8mj
160
Feeling a bit intimidating to write about it but work on attacks can lead to good insights for mitigation. Plan to write about mitigation work separately later. Also want to thank all the researchers who shared disclosure reports w/ us so far. 🙏🙏🙏 lilianweng.github.io/posts/2…
23
196
12
1,170
423,853
An essential step to becoming a scientist is to learn methods and protocols to avoid deluding yourself into believing false things. You learn that by doing a PhD and getting your research past your advisor and getting your publications to survive peer review.
159
183
61
1,860
500,799
🛠 New posts on Prompt Engineering: Steer a large pretrained language model to do what you want wo/ updating the model weights. lilianweng.github.io/posts/2… Most importantly this just introduces general ideas, but for your own problem, you always need tuning and experimentation.
32
337
31
1,627
279,718
Brilliant idea👏
2D Voronoi diagram of n black sites with red line bisectors. Can be computed as vertical projection of a minimization diagram of n magenta paraboloids. Each paraboloid = square distance function to a Voronoi site. Equivalent to a min. diagram of halfspaces tinyurl.com/BregmanVoronoi
37
Here are some resources to understand RLHF (reinforcement learning with human feedback) (1) "Asynchronous Methods for Deep Reinforcement Learning" (2016, arxiv.org/abs/1602.01783). Introduces policy gradients methods for deep learning-based RL as alternative to Q-learning. (2) "Proximal Policy Optimization Algorithms" (2017, arxiv.org/abs/1707.06347). The modified RL procedure that is adopted for RL -- it is more data efficient and scalable than the vanilla policy optimization algorithm above. (3) "Learning to Summarize from Human Feedback" (2022, arxiv.org/abs/2009.01325). Introduces the popular 3-step procedure: (a) pretrain GPT-3, (b) fine-tune in supervised fashion, (c) Train reward model in supervised fashion, and train fine-tuned model with PPO. This paper also shows that the RL step results in better models than just using regular supervised learning (see figure below) (4) "Training Language Models to Follow Instructions With Human Feedback" (2022, arxiv.org/abs/2203.02155). Similar to above but for generating (instead of just summarizing) text. Also, instead of using a loss that compares a human- and LLM-generated summary, a labeler ranks the outputs from best to worst. Apparently, this method was also used for ChatGPT.
5
80
3
455
71,601