paddle_check.ipynb 2.84 KB
Newer Older
lipengfei's avatar
lipengfei committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
 "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
}