这个需要引入的maven依赖是什么
时间: 2024-05-08 12:22:34 浏览: 155
如果你想在Java项目中使用ChitGPT,需要引入以下Maven依赖:
```
<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-engine</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-native-auto</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-model-zoo</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>api</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basicdataset</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basicmodel</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basictranslator</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basicutils</artifactId>
<version>0.16.0</version>
</dependency>
```
其中,`pytorch-engine`、`pytorch-native-auto`、`pytorch-model-zoo` 是 PyTorch 引擎和模型库的依赖,`api`、`basicdataset`、`basicmodel`、`basictranslator`、`basicutils` 是Deep Java Library (DJL) 的核心依赖。
阅读全文