Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.05 KB

tongyi.md

File metadata and controls

45 lines (28 loc) · 1.05 KB

通义千问

Introduction

https://help.aliyun.com/zh/dashscope/developer-reference/api-details

Prerequisites

  1. 开通DashScope并创建API-KEY
  2. 申请通义千问模型API权限,点此申请

Deploy Jupyter

  1. create a Jupyter Notebook Deployment (CPU)
kubectl apply -f notebook.yaml
  1. wait deployment ready
kubectl get po |grep notebook

# NAME                       READY   STATUS    RESTARTS   AGE
# notebook-d68d854c9-ptvtp   1/1     Running   0          8m5s
  1. connect to the Jupyter Notebook

Run the following command to port-forward:

kubectl port-forward -n <namespace> service/notebook-svc 8888:8888

And then open the console using the following URL:

http://localhost:8888
  1. 创建Notebook,参考tongyi.ipynb调用通义千问API。

notebook