{ "cells": [ { "cell_type": "markdown", "id": "21761981-d2c1-43f4-86b9-1322a2567e65", "metadata": {}, "source": [ "# DCU镜像检测-paddlepaddle\n", "此脚本为paddlepaddle的DCU镜像通用检查脚本,更多项目和issue信息请参考[链接](https://developer.sourcefind.cn/codes/chenpangpang/gpu-base-image-test)。" ] }, { "cell_type": "markdown", "id": "35dc434c-70c7-48ee-a6c7-0bc5f7c4d143", "metadata": {}, "source": [ "## 一、线上版本检测" ] }, { "cell_type": "code", "execution_count": null, "id": "7e466048-2868-459c-8442-6ec5cdbf76db", "metadata": {}, "outputs": [], "source": [ "import sys\n", "print(sys.path)\n", "import paddle\n", "print(paddle.__version__,'\\n',paddle.__dcu_version__)\n", "import paddle\n", "paddle.device.get_device()" ] }, { "cell_type": "markdown", "id": "77fe3509-6429-4b4b-9757-6c2663d11330", "metadata": {}, "source": [ "## 一、脚本检测" ] }, { "cell_type": "markdown", "id": "5ca1ce5d-7c90-4a54-ae45-642112227a17", "metadata": {}, "source": [ "### 2.1 检测环境配置" ] }, { "cell_type": "code", "execution_count": null, "id": "49b3b355-9afd-42cf-b354-629dba8aba92", "metadata": {}, "outputs": [], "source": [ "!pip install paddlenlp ppdiffusers" ] }, { "cell_type": "markdown", "id": "7eba7a55-7407-462d-9405-59df27cefd45", "metadata": {}, "source": [ "### 2.2 版本检测" ] }, { "cell_type": "code", "execution_count": null, "id": "d2e335b4-7a98-425d-ad67-395537956888", "metadata": {}, "outputs": [], "source": [ "!python ../paddle/base_test.py" ] }, { "cell_type": "markdown", "id": "e456e88d-7394-4382-9efc-f983b1d95ba9", "metadata": {}, "source": [ "### 2.3 文本模型检测" ] }, { "cell_type": "code", "execution_count": null, "id": "646dda99-2f5f-4a72-b412-da12c002ef6e", "metadata": {}, "outputs": [], "source": [ "!python ../paddletest/text.py" ] }, { "cell_type": "markdown", "id": "c083c135-9109-4112-ad9a-9f03b80e0981", "metadata": {}, "source": [ "### 2.4 图像模型检测" ] }, { "cell_type": "code", "execution_count": null, "id": "0cc8d224-d107-4048-8a6d-ce7363fa5cc2", "metadata": {}, "outputs": [], "source": [ "!python ../paddletest/image.py" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.15" } }, "nbformat": 4, "nbformat_minor": 5 }