Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
allwefantasy committed May 20, 2024
1 parent f71d30e commit 1368915
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
23 changes: 19 additions & 4 deletions byzer-lang/zh-cn/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,30 @@

- 发行声明
* [Byzer 版本管理策略](/byzer-lang/zh-cn/release-notes/README.md)
* [Byzer-SQL 2.3.10](/byzer-lang/zh-cn/release-notes/2.3.10.md)
* [Byzer-SQL 2.3.10](/byzer-lang/zh-cn/release-notes/2.3.10.md)
- 历史版本
* [Byzer-SQL 2.3.8](/byzer-lang/zh-cn/release-notes/2.3.8.md)
* [Byzer-SQL 2.3.7](/byzer-lang/zh-cn/release-notes/2.3.7.md)
* [Byzer-SQL 2.3.6](/byzer-lang/zh-cn/release-notes/2.3.6.md)
* [Byzer-SQL 2.3.5](/byzer-lang/zh-cn/release-notes/2.3.5.md)
* [Byzer-SQL 2.3.4](/byzer-lang/zh-cn/release-notes/2.3.4.md)
* [Byzer-SQL 2.3.3](/byzer-lang/zh-cn/release-notes/2.3.3.md)
* [Byzer-SQL 2.3.2](/byzer-lang/zh-cn/release-notes/2.3.2.md)
* [Byzer-SQL 2.3.1](/byzer-lang/zh-cn/release-notes/2.3.1.md)
* [Byzer-SQL 2.3.0.1](/byzer-lang/zh-cn/release-notes/2.3.0.1.md)
* [Byzer-SQL 2.3.0](/byzer-lang/zh-cn/release-notes/2.3.0.md)
* [Byzer-SQL 2.2.2](/byzer-lang/zh-cn/release-notes/2.2.2.md)
* [Byzer-SQL 2.2.1](/byzer-lang/zh-cn/release-notes/2.2.1.md)
* [Byzer-SQL 2.2.0](/byzer-lang/zh-cn/release-notes/2.2.0.md)

- Byzer-SQL 中使用 LLM
* [部署](/byzer-lang/zh-cn/byzer-llm/deploy.md)
* [快速使用指南](/byzer-lang/zh-cn/byzer-llm/quick-tutorial.md)
* [API 调用](/byzer-lang/zh-cn/byzer-llm/api.md)
* [升级指南](/byzer-lang/zh-cn/byzer-llm/upgrade.md)
* [模型微调](/byzer-lang/zh-cn/byzer-llm/model-sft.md)
* [模型预训练](/byzer-lang/zh-cn/byzer-llm/model-sfft.md)
* [手动升级指南](/byzer-lang/zh-cn/byzer-llm/upgrade.md)
* 预训练/微调
* [模型微调](/byzer-lang/zh-cn/byzer-llm/model-sft.md)
* [模型预训练](/byzer-lang/zh-cn/byzer-llm/model-sfft.md)
* [Byzer-SQL中使用Stable Diffusion](/byzer-lang/zh-cn/byzer-llm/stable_diffusion.md)
* [Prometheus 对接](/byzer-lang/zh-cn/byzer-llm/prometheus-metrics.md)

Expand Down
34 changes: 31 additions & 3 deletions byzer-lang/zh-cn/extension/operation/offline_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## 下载Jar包并且上传到你的服务器

```
```bash
wget http://store.mlsql.tech/run?action=downloadPlugin&pluginType=MLSQL_PLUGIN&pluginName=byzer-objectstore-oss-3.3&version=0.1.0-SNAPSHOT
```

Expand All @@ -20,7 +20,7 @@ wget http://store.mlsql.tech/run?action=downloadPlugin&pluginType=MLSQL_PLUGIN&p
除了对象存储类的插件,为了能够让插件生效,我们需要在启动脚本里,
配置插件主类(这里以Excel插件安装为例):

```
```properties
-streaming.plugin.clzznames tech.mlsql.plugins.ds.MLSQLExcelApp
```

Expand All @@ -30,4 +30,32 @@ wget http://store.mlsql.tech/run?action=downloadPlugin&pluginType=MLSQL_PLUGIN&p
--jar <your file path>/mlsql-excel-2.4_2.11.jar
```

> 注意,jar应该放到程序执行目录下,否则jvm启动会找不到该类
> 注意,jar应该放到程序执行目录下,否则jvm启动会找不到该类
## 如何查找插件信息

官方提供的插件主要都在 https://github.com/byzer-org/byzer-extension 项目中。根据前面的描述,你需要准备插件jar包和配置插件入口类,你可以
通过在该项目里的插件子目录找到相关信息。

比如假设你安装 byzer-openmldb, 那么可以打开 https://github.com/byzer-org/byzer-extension/blob/master/byzer-openmldb/desc.plugin ,可以看到 mainClass 信息,以及插件 moduleName 等信息。

## 如何自己编译插件

如果你需要自己编译插件,需要先安装byzer-lang 依赖,然后再编译插件。具体做法如下:

```bash
git clone https://github.com/byzer-org/byzer-lang
cd byzer-lang
mvn clean install -DskipTests -Ponline -pl streamingpro-mlsql -am
```

编译成功之后,就可以编译插件了:

```bash
mvn clean install -Pshade -DskipTests -pl ${MODULE}
```

其中 `${MODULE}` 是插件的模块名,比如 byzer-openmldb



0 comments on commit 1368915

Please sign in to comment.