Skip to content

Commit d202366

Browse files
committed
Update public notes
1 parent 8594b70 commit d202366

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed
54 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Float32:float point 32,又称FP32。32位浮点数。
2+
Float16:FP16,16位浮点数
3+
Bfloat16:BF16,指数位和FP32相同,但精度逼FP16差
4+
5+
| 类型 | 指数位 | 尾数位 |
6+
| :--: | :----: | :-----: |
7+
| FP32 | 8 bits | 23 bits |
8+
| FP16 | 5 bits | 10 bits |
9+
| BF16 | 8 bits | 7 bits |
10+
11+
FP32称为全精度(4字节),FP16和BF16为半精度(2字节)
12+
13+
**混合精度训练**:指的是使用FP32作为主权重,而在进行前向和后向传播时使用FP16/BF16来提升训练速度,最后在梯度更新阶段再使用FP16/BF16梯度更新FP32主权重。
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
tags:
3+
- Cookie
4+
- Session
5+
- Token
6+
- Http
7+
---
8+
## Cookie
9+
http是无状态的——意味着服务器不知道每一次http请求时用户端的状态情况。
10+
11+
而Cookie的出现,便使得http可以有「状态」。
12+
13+
Cookie的原理大致如下:
14+
1. 客户端向服务器发送http请求
15+
2. 服务器响应请求,并且在响应标头中设定[`Set-Cookie`](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Set-Cookie)响应头
16+
3. 客户端收到`Set-Coookie`并设置Cookie(需要指出,Cookie的存储形式是键值对,或者又叫字典)
17+
4. 此后每次客户端发送http请求的时候都在请求头附上设置好的Cookie
18+
19+
大致如图
20+
![[Pasted image 20250226185849.png]]
21+
22+
可以发现,Cookie即可以成为http的「状态」——根据不同的Cookie,服务器可以返回不同的网页内容。
23+
24+
## Session
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11

22
## 字体资源
3-
- [Programming Fonts - Test Drive](https://www.programmingfonts.org/) 可以在线预览编程字体的网站
3+
- [Programming Fonts - Test Drive](https://www.programmingfonts.org/) 可以在线预览编程字体的网站
4+
5+
## 规范文档
6+
- [语义化版本 2.0.0 | Semantic Versioning](https://semver.org/lang/zh-CN/) SemVer 语义化版本号规范文档

0 commit comments

Comments
 (0)