Skip to content

Commit 874acfc

Browse files
LinLin
authored andcommitted
Merge branch 'main' of https://github.com/Justjustifyjudge/CSBasicKnowledge into linyifan_branch
2 parents 1d8938d + 95a02b7 commit 874acfc

16 files changed

Lines changed: 248 additions & 6 deletions

File tree

src/SUMMARY.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
- [Academic](./ac/ac.md)
3333
- [Academic常用知识](./ac/academic.md)
3434
- [Tenure-Track Asst. Professors and PhD students ](./ac/ap_phd.md)
35+
- [(Special Issue)专业代码那些事儿](./ac/specialty_code.md)
3536
- [Writing](./writing/writing.md)
3637
- [CV & Resume](./writing/resume.md)
37-
- [LaTeX & Markdown](./writing/latex.md)
38+
- [LaTeX & Markdown](./writing/latex&markdown.md)
3839
- [Typst](./writing/typst.md)
3940
- [实用工具](./useful/useful.md)
4041
- [Linux](./useful/linux.md)
@@ -46,6 +47,8 @@
4647
- [Docker](./useful/docker.md)
4748
- [程序员指南](./programmer/programmer.md)
4849
- [MISC](./misc/misc.md)
50+
- [软件开发](./develop/front.md)
51+
- [Front End](./develop/front.md)
4952

5053
---
5154

src/ac/academic.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919
- [清华大学计算机学科推荐学术会议和期刊列表 (TH-CPL)](https://github.com/bugaosuni59/TH-CPL)
2020
- [CSRankings](https://csrankings.org/): Computer Science Rankings
2121
- [国家自然科学基金查询](https://kd.nsfc.gov.cn/resultInit)
22-
22+
- [The-PhD-Grind(“研”磨记)英文版](https://step-out.github.io/files/The-PhD-Grind.pdf)
23+
- [The-PhD-Grind(“研”磨记)中文版](https://step-out.github.io/files/phd-grind-chn.pdf)
24+
- [对phd一年级新生有什么建议?](https://www.zhihu.com/question/32210068/answer/2786600114?utm_campaign=shareopn&utm_content=group1_Answer&utm_medium=social&utm_psn=1820616048568836096&utm_source=wechat_session)

src/ac/img/0812.png

431 KB
Loading

src/ac/img/0835.png

434 KB
Loading

src/ac/img/example1.png

355 KB
Loading

src/ac/img/example2.png

446 KB
Loading

src/ac/specialty_code.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# (Special Issue)专业代码那些事儿
2+
3+
## 1. 专业代码是什么?
4+
专业代码是教育部用于标识和管理不同学科专业的一种编码,通常由6位数字组成。专业代码在`本科专业设置``研究生专业设置`上是分离的。需要注意的的一点是⚠️:***两者并不相关,需要分情况说明,不可以混为一谈。***
5+
6+
### 1.1 研究生教育学科专业目录(研究生专业代码)
7+
目前研究生教育学科专业目录最新版本为2022版,并从2023年起开始实施。可通过研招网下载附件📎查看:[研究生教育学科专业目录(2022年)](https://yz.chsi.com.cn/kyzx/jybzc/202209/20220914/2216547448.html)
8+
9+
其中“研究生教育学科专业目录”中对于**专业学位**代码非常模糊,具体的**专业学位**代码请查看:[关于电子信息等8种专业学位类别专业领域指导性目录的说明](https://meng.tsinghua.edu.cn/docs/20210115210416891658.pdf)
10+
11+
通过两份文件,我们可以总结出与计算机学科相关的专业代码,如下表:
12+
<p align='center'><b>计算机学科相关专业研究生代码汇总</b></p>
13+
14+
| 学位类型 | 专业代码 | 专业名称 |
15+
| ------ | ------ | ---------------- |
16+
| 学术学位 | 081200 | 计算机科学与技术 |
17+
| 学术学位 | 083500 | 软件工程 |
18+
| 学术学位 | 083900 | 网络空间安全 |
19+
| 学术学位 | 140500 | 智能科学与技术 |
20+
| 专业学位 | 085400 | 电子信息 |
21+
| 专业学位 | 085404 | 计算机技术 |
22+
| 专业学位 | 085405 | 软件工程 |
23+
| 专业学位 | 085411 | 大数据技术与工程 |
24+
| 专业学位 | 085412 | 网络与信息安全 |
25+
26+
27+
其中,有几点需要强调:
28+
1. 专业代码中,第三、四位被划分成了上下两个半区,上半区为**01-50**,下半区为**51-99**。上半区对应**学术学位**,下半区对应**专业学位**
29+
2. 专业代码中,第五、六位对应二级学科,对于**专业学位**而言,需要**特别注意**,因为 **0854(电子信息)** 里同时包含计算机、自动化、电子、信息、生医、仪器等方向的专硕,无法表明到底是哪个学科的专硕。
30+
31+
#### 下面是两个计算机类研究生专业代码的示例:
32+
33+
<p align='center'><b>学术学位专业代码示例</b></p>
34+
<p align='center'><img src="./img/example1.png" alt="drawing" width="80%"/></p>
35+
<p align='center'><b>专业学位专业代码示例</b></p>
36+
<p align='center'><img src="./img/example2.png" alt="drawing" width="80%"/></p>
37+
38+
39+
### 1.2 普通高等学校本科专业目录(本科专业代码)
40+
普通高等学校本科专业目录最新版本为2024版,可通过教育部官方网站下载附件📎查看:[普通高等学校本科专业目录(2024年)](https://www.moe.gov.cn/srcsite/A08/moe_1034/s4930/202403/W020240319305498791768.pdf)
41+
42+
其中,与计算机类有关的专业代码如下表:
43+
44+
# 计算机类相关专业代码汇总
45+
46+
<p align='center'><b>计算机学科相关本科专业代码汇总</b></p>
47+
48+
| 序号 | 门类、专业类 | 专业代码 | 专业名称 | 学位授予门类 | 修业年限 | 增设年度 |
49+
| ---- | ------------ | -------- | ------------------ | -------------- | -------- | -------- |
50+
| 397 | 计算机类 | 080901 | 计算机科学与技术 | 理学、工学 | 四年 | |
51+
| 398 | 计算机类 | 080902 | 软件工程 | 工学 | 四年 | |
52+
| 399 | 计算机类 | 080903 | 网络工程 | 工学 | 四年 | |
53+
| 400 | 计算机类 | 080904K | 信息安全 | 管理学、理学、工学 | 四年 | |
54+
| 401 | 计算机类 | 080905 | 物联网工程 | 工学 | 四年 | |
55+
| 402 | 计算机类 | 080906 | 数字媒体技术 | 工学 | 四年 | |
56+
| 403 | 计算机类 | 080907T | 智能科学与技术 | 理学、工学 | 四年 | |
57+
| 404 | 计算机类 | 080908T | 空间信息与数字技术 | 工学 | 四年 | |
58+
| 405 | 计算机类 | 080909T | 电子与计算机工程 | 工学 | 四年 | |
59+
| 406 | 计算机类 | 080910T | 数据科学与大数据技术 | 理学、工学 | 四年 | 2015 |
60+
| 407 | 计算机类 | 080911TK | 网络空间安全 | 工学 | 四年 | 2015 |
61+
| 408 | 计算机类 | 080912T | 新媒体技术 | 工学 | 四年 | 2016 |
62+
| 409 | 计算机类 | 080913T | 电影制作 | 工学 | 四年 | 2016 |
63+
| 410 | 计算机类 | 080914TK | 保密技术 | 工学 | 四年 | 2017 |
64+
| 411 | 计算机类 | 080915T | 服务科学与工程 | 工学 | 四年 | 2019 |
65+
| 412 | 计算机类 | 080916T | 虚拟现实技术 | 工学 | 四年 | 2019 |
66+
| 413 | 计算机类 | 080917T | 区块链工程 | 工学 | 四年 | 2019 |
67+
| 414 | 计算机类 | 080918TK | 密码科学与技术 | 工学 | 四年 | 2020 |
68+
69+
## 2. 为什么需要专业代码?
70+
71+
害,还不是有单位会看要求,不然谁会来看这些东西?专业代码会在**考公****国企招聘**等位置不经意的出现。当然,对于打算进入私企就业的同学来说,专业代码就不是那么重要了。
72+
73+
举个例子🌰,以“[广东省2024年考试录用公务员](https://hrss.gd.gov.cn/zwgk/gsgg/content/post_4332302.html)”为例,0812相比0835在可报考岗位上有着绝对的优势(1405的同学😭):
74+
75+
<p align='center'><b>0812可报考岗位</b></p>
76+
<p align='center'><img src="./img/0812.png" alt="drawing" width="90%"/></p>
77+
<p align='center'><b>0835可报考岗位</b></p>
78+
<p align='center'><img src="./img/0835.png" alt="drawing" width="90%"/></p>
79+
80+
## 3. 常见问题
81+
82+
### 3.1 专硕的专业代码是否可以更改?比如从085400(电子信息)更加细化?
83+
&emsp;&emsp;这个问题通常取决于学校,要符合学校的一些要求,比如只能细化到特定的一两个代码之中。ZJU SE就曾发过这样的公告,供大家参考:[软件学院专业学位领域代码调整通知](http://www.cst.zju.edu.cn/2022/1020/c36256a2649375/page.htm)
84+
85+
### 3.2 0812XY例如(0812Z1)这类专业代码是0812吗?
86+
&emsp;&emsp;以0812Z1为例,这类专业代码一般来说是可以算作0812的,也就是一级学科是“计算机科学与技术——学术学位”,所以大多数情况下依然是0812。
87+
88+
### 3.3 以后有考公的打算,该怎么在计算机类学专硕的各个专业中选择?
89+
&emsp;&emsp;答案很明确,0812就是神。所以能够拿到计科学硕对于考公是最有利的,0812也的确是认可度最高的万金油专业(卷成这样不是没有道理的)。而对于最近很多学校把AI学硕挪到140500这样的迷惑操作,实在是对于考公过于不友好了,需要谨慎考虑一下。至于其他的专业包括0835(软件学硕)、0839(网安学硕)、085404/5(计/软专硕),最好还是亲自调研一下目标省份的岗位要求。

src/ai/cuda.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,36 @@
55
- [pybind11 documentation](https://pybind11.readthedocs.io/en/stable/basics.html)
66
- [Using pybind11](https://people.duke.edu/~ccc14/sta-663-2016/18G_C++_Python_pybind11.html)
77
- [Use pybind11 for a detailed but simple example](https://iamsorush.com/posts/pybind11-robot/)
8-
- 切换CUDA版本步骤: [[CSDN](https://blog.csdn.net/u013905398/article/details/103799621)]
98
- 查看你的显卡的情况:
109
- nvitop: [[Github](https://github.com/XuehaiPan/nvitop)]
1110
- gpustat: [[Github](https://github.com/wookayin/gpustat)]
1211
- nvidia-smi
12+
- - 切换CUDA版本步骤
13+
- 删除软连接
14+
```shell
15+
cd /usr/local
16+
ls -l cuda # 查看cuda的软链接
17+
sudo rm -rf cuda
18+
sudo ln -s /usr/local/cuda-10.0 /usr/local/cuda # 更换为对应的cuda
19+
```
20+
- 添加环境变量
21+
```shell
22+
# 如果使用的是z-shell请替换`.bashrc`为`.zshrc`
23+
tee -a ~/.bashrc > /dev/null << 'EOF'
24+
# CUDA
25+
export PATH=${PATH}:/usr/local/cuda/bin
26+
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib64
27+
export CUDA_HOME=/usr/local/cuda # 通过设置软链接`/usr/local/cuda`,可以做到多版本CUDA共存
28+
EOF
29+
30+
# 或者
31+
32+
# 修改`/etc/profile`以做到多用户、多Shell解释器通用
33+
sudo tee -a /etc/profile > /dev/null << 'EOF'
34+
# CUDA
35+
export PATH=${PATH}:/usr/local/cuda/bin
36+
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib64
37+
export CUDA_HOME=/usr/local/cuda # 通过设置软链接`/usr/local/cuda`,可以做到多版本CUDA共存
38+
EOF
39+
```
40+
在完成上述步骤后,你需要`source ~/.bashrc`(或`source /etc/profile`)刷新环境变量或者`reboot`重启

src/ai/huggingface.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
- 高速下载 huggingface 的超大体积的模型和数据集:
44
- [Github: huggingface-go](https://github.com/xieincz/huggingface-go)
5-
- [AI快站](https://aifasthub.com/): 10MB/S下载的带宽资源
65
- [国内huggingface加速镜像站](https://hf-mirror.com)
7-
- [如何快速下载huggingface模型——全方法总结](https://zhuanlan.zhihu.com/p/663712983?utm_medium=social&utm_oi=1347152889933049856&utm_psn=1703700804178083840&utm_source=wechat_session&s_r=0)
6+
- [如何快速下载huggingface模型——全方法总结](https://zhuanlan.zhihu.com/p/663712983?utm_medium=social&utm_oi=1347152889933049856&utm_psn=1703700804178083840&utm_source=wechat_session&s_r=0)

src/ai/pytorch.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,71 @@
11
# PyTorch
2+
## Installation
3+
### 根据OS和cuda选择适配的torch版本
4+
https://pytorch.org/get-started/previous-versions/
5+
### pip
6+
#### 安装最新版
7+
```shell
8+
pip install torch torchvision torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple
9+
```
10+
#### 指定版本(preffered)
11+
创建名为pytorch310的虚拟环境
12+
```shell
13+
conda create -n pytorch310 python==3.10
14+
```
15+
激活环境
16+
```shell
17+
conda activate pytorch310
18+
```
19+
设置清华源,加速安装
20+
```shell
21+
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
22+
```
23+
指定版本安装
24+
```shell
25+
pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 -f https://download.pytorch.org/whl/torch_stable.html
26+
```
27+
### conda
28+
添加清华镜像源
29+
```shell
30+
# 若不含有`~/.condarc`,生成它
31+
ls ~/.condarc || conda config --set show_channel_urls yes
32+
33+
# 之后配置镜像源(南科大提供的额外软件包镜像可以加速安装CUDA版Pytorch)
34+
tee ~/.condarc > /dev/null << EOF
35+
channels:
36+
- defaults
37+
show_channel_urls: true
38+
default_channels:
39+
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
40+
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
41+
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
42+
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
43+
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
44+
custom_channels:
45+
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
46+
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
47+
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
48+
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
49+
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
50+
pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
51+
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
52+
deepmodeling: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
53+
nvidia: https://mirrors.sustech.edu.cn/anaconda-extra/cloud
54+
55+
envs_dirs:
56+
- your-path/anaconda3/envs # 替换为您的路径(另外,若安装的是miniconda3,请自行替换),不设置此项有可能安装在`~/.conda/envs`
57+
EOF
58+
```
59+
#### 安装最新版
60+
```shell
61+
conda install pytorch torchvision torchaudio cudatoolkit=10.2
62+
```
63+
#### 指定版本
64+
```shell
65+
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4 cudatoolkit=10.2
66+
```
67+
68+
## Tutorial
269
- [pytorch examples](https://github.com/pytorch/examples)
370
- [pytorch tutorials](https://github.com/pytorch/tutorials)
471
- pytorch模型性能分析和优化: [weixin](https://mp.weixin.qq.com/s/lxJthBk1L2nYOyQyLbqqEw)

0 commit comments

Comments
 (0)