# llama3 ## 论文 [deepseek-v2](https://arxiv.org/abs/2405.04434) ## 模型结构
## 环境配置 -v 路径、docker_name和imageID根据实际情况修改 ### Docker(方法一) ```bash docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-centos7.6-dtk24.04-py310 docker run -it -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro --shm-size=80G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash cd /your_code_path/deepseek-v2_pytorch pip install -r requirements.txt pip install -U huggingface_hub hf_transfer export HF_ENDPOINT=https://hf-mirror.com ``` ### Dockerfile(方法二) ```bash cd docker docker build --no-cache -t llama3:latest . docker run -it -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro --shm-size=80G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash cd /your_code_path/deepseek-v2_pytorch pip install -r requirements.txt pip install -U huggingface_hub hf_transfer export HF_ENDPOINT=https://hf-mirror.com ``` ### Anaconda(方法三) 关于本项目DCU显卡所需的特殊深度学习库可从[光合](https://developer.hpccube.com/tool/)开发者社区下载安装。 ```bash DTK驱动: dtk24.04 python: python3.10 torch: 2.1.0 ``` `Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一一对应` 其它非深度学习库安装方式如下: ```bash pip install -r requirements.txt pip install -U huggingface_hub hf_transfer export HF_ENDPOINT=https://hf-mirror.com ``` ## 数据集 暂无 ## 训练 ## 推理 ### 精度 暂无 ## 应用场景 ### 算法类别 对话问答 ### 热点应用行业 制造,广媒,家居,教育 ## 预训练权重 模型目录结构如下: ```bash ├── model_save_path │ ├── DeepSeek-V2 │ ├── LICENSE │ ├── README.md │ ├── config.json │ ├── configuration_deepseek.py │ ├── generation_config.json │ ├── model-00001-of-000004.safetensors │ ├── model-00002-of-000004.safetensors │ ├── model-00003-of-000004.safetensors │ ├── model-00004-of-000004.safetensors │ ├── model.safetensors.index.json │ ├── modeling_deepseek.py │ ├── tokenization_deepseek_fast.py │ ├── tokenizer.json │ └── tokenizer_config.json │ ├── DeepSeek-V2-Lite │ ├── LICENSE │ ├── README.md │ ├── config.json │ ├── configuration_deepseek.py │ ├── generation_config.json │ ├── model-00001-of-000055.safetensors │ ├── model-00002-of-000055.safetensors │ ├── model-00054-of-000055.safetensors │ ... │ ├── model-00055-of-000055.safetensors │ ├── model.safetensors.index.json │ ├── modeling_deepseek.py │ ├── tokenization_deepseek_fast.py │ ├── tokenizer.json │ └── tokenizer_config.json ``` ## 源码仓库及问题反馈 - https://developer.hpccube.com/codes/modelzoo/deepseek-v2_pytorch ## 参考资料 - https://github.com/deepseek-ai/DeepSeek-V2 - https://huggingface.co/deepseek-ai/DeepSeek-V2 - https://huggingface.co/deepseek-ai/DeepSeek-V2-Lite