摘要: !声明:本文部分框架及理论来自于 【大猿搬砖简记】 的公众号文章,但为了方便本人学习,进行了整理,同时在这个清晰的框架内添加了一些总结性质的内容,如需看原文请在其公众号中搜索:图解大模型计算加速系列。特此声明。 一、背景知识 LLM推理通常为两阶段: prefill 和 decode。 通常会使用K 阅读全文
posted @ 2024-12-14 14:24 AAA建材王师傅 阅读(488) 评论(0) 推荐(0)
摘要: 1.强化学习和语言模型的联系 agent: 语言模型本身 state: prompt(input tokens) action: 选择哪个token作为下一个token(贪婪,top k,top p) reward model:当生成‘好的回复’语言模型应当被奖励,当生成‘差的回复’语言模型不会受到 阅读全文
posted @ 2024-12-10 16:19 AAA建材王师傅 阅读(400) 评论(0) 推荐(1)
摘要: CAN304 W5 Designing security protocols Security protocols: A series of steps involving two or more parties designed to accomplish a task with suitable 阅读全文
posted @ 2023-05-13 22:26 AAA建材王师傅 阅读(77) 评论(0) 推荐(0)
摘要: CAN304 W4 The public-key revolution 对称加密 (symmetric cryptograph) 带来了一系列安全问题: 如何安全地共享密钥?(The key-distribution problem) 多个人如何共享密钥 (每两人一个?)(The key-manag 阅读全文
posted @ 2023-05-13 22:26 AAA建材王师傅 阅读(98) 评论(0) 推荐(0)
摘要: CAN304 W3 Message authentication code Message integrity 我们一直关注确保通信的保密性。 Integrity:确保接收到的消息来自预期方,并且未被修改,即使攻击者控制该通道。 保密 (secrecy) 和完整性 (integrity) 是正交的问 阅读全文
posted @ 2023-05-13 22:26 AAA建材王师傅 阅读(84) 评论(0) 推荐(0)
摘要: CAN304 W2 Classical and modern cryptography Classical cryptography 完全依赖于通信双方之间共享的秘密信息(Private-key cryptography, 又叫 secret-key / shared-key / symmetric 阅读全文
posted @ 2023-05-13 22:26 AAA建材王师傅 阅读(69) 评论(0) 推荐(0)
摘要: CAN304 W1 Definition The protection afforded to an automated information system in order to attain the applicable objectives of preserving the integri 阅读全文
posted @ 2023-05-13 22:26 AAA建材王师傅 阅读(118) 评论(0) 推荐(0)
摘要: 碰撞器下载地址:http://www.win.tue.nl/hash*****/fastcoll_v1.0.0.5.exe.zip 测试: MsgBox.exe是一个简单的测试程序,MFC,执行会弹出一个框框 fastcoll_v1.0.0.5.exe -p MsgBox.exe -o m1.exe 阅读全文
posted @ 2023-04-20 15:35 AAA建材王师傅 阅读(181) 评论(0) 推荐(0)
摘要: 一、对称加密解密方式 我们的数据传输对称加密过程如下: 例如,现在A方要将一段数据发送给B方,如果不加密的话,直接用明文传输,很可能在传输的过程中被恶意的第三方拦截到,轻则是B方接收不到数据,重则恶意的第三方篡改数据,让B方接收到错误的数据,使得A、B双方蒙受损失。于是我们要在A方进行数据加密,并且 阅读全文
posted @ 2023-03-17 21:40 AAA建材王师傅 阅读(388) 评论(0) 推荐(1)
摘要: import torch import torchvision from torch.utils.data import DataLoader import torch.nn as nn #torch.nn层中包含可训练的参数 import torch.nn.functional as F impo 阅读全文
posted @ 2022-11-29 22:23 AAA建材王师傅 阅读(204) 评论(0) 推荐(0)