These 6 commits are when the Protocol Buffers files have changed:
| Commit: | fd4d93b | |
|---|---|---|
| Author: | LeoSun | |
| Committer: | GitHub | |
refactor: 优化工具函数、Tokenizer 前缀树匹配及测试基础设施 (#196) * refactor(utils): 更新类型别名为 `any` 将 `slice.go` 和相关测试中的 `[]interface{}` 替换为 `[]any`,以提高代码的一致性并利用 Go 的类型别名特性。同时更新了相关的函数签名和测试验证逻辑。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * refactor(nvidia_inferenceserver): 简化测试中的上下文处理并移除未使用的辅助函数 简化了测试代码中的上下文创建方式,将 `nil` 替换为 `context.TODO()`,同时删除了一个不再需要的 `jsonHandler` 辅助函数。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * refactor(utils): 添加空切片检查并优化内存分配 为`SliceTransposeFor3D`和`SliceTransposeFor2D`函数添加了空切片边界检查,并在多个字符串处理函数中预估容量以减少内存重新分配。同时更新了相关的单元测试和基准测试。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * chore(lint): 移除golangci-lint配置中的gochecknoinits规则 移除了golangci-lint配置中的gochecknoinits规则,保留其他启用的检查项。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * refactor(transformers): 优化tokenizer中的前缀树匹配逻辑 移除未使用的token返回值,直接从字符串切片获取匹配结果,提高性能并简化代码结构。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * refactor(transformers): 修改词汇表字段为指针并优化前缀树匹配逻辑 将`WordPieceTokenizer`中的`vocabulary`字段从值类型改为指针类型,并简化了前缀树匹配的条件判断逻辑。同时,在`vocab.go`中添加了`ensureTrie()`方法用于确保前缀树的存在性检查。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * refactor(transformers): 修改tokenizer参数为指针类型 将`NewWordPieceTokenizer`函数的参数从值传递改为指针传递,并更新相关调用处。同时更新`Dict`类型的接收者方法为指针类型以保持一致性。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * refactor(utils): 更新注释并修正测试数据 更新了 `utils/slice.go` 中的两个转置函数的注释说明输入要求;移除了未使用的错误变量定义;并在相关测试文件中调整了浮点数类型的测试数据格式从 FP32 改为 FP16。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com> * chore(changelog): 更新到 v2.2.0 版本并记录所有变更详情 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com>
The documentation is generated from this commit.
| Commit: | 9978c69 | |
|---|---|---|
| Author: | sunhailinLeo | |
refactor(utils): 更新类型别名为 `any` 将 `slice.go` 和相关测试中的 `[]interface{}` 替换为 `[]any`,以提高代码的一致性并利用 Go 的类型别名特性。同时更新了相关的函数签名和测试验证逻辑。 Co-developed-by: Aone Copilot <noreply@alibaba-inc.com>
The documentation is generated from this commit.
| Commit: | ffef266 | |
|---|---|---|
| Author: | sunhailinLeo | |
feat: add comprehensive unit tests, benchmarks, Makefile, and optimize CI workflows - Add unit tests for utils, models, models/transformers, nvidia_inferenceserver packages - Coverage: utils 98.8%, models 80.5%, models/transformers 48.0%, nvidia_inferenceserver 2.1% - Add 34 benchmark tests for core hot paths - Add Makefile with test, bench, coverage, lint, vet, fmt, proto, clean targets - Optimize GitHub Actions workflows: add Go 1.26.x support, coverage upload - Fix workflow typo: sercurity.yml -> security.yml - Simplify vulncheck workflow to scan entire project - Add .gitignore entry for coverage.out
| Commit: | 04bf196 | |
|---|---|---|
| Author: | sunhailinLeo | |
:hammer: update grpc proto and grpc codes to compatible triton inference server 23.02
| Commit: | c3a0fd6 | |
|---|---|---|
| Author: | sunhailinLeo | |
:hammer: update grpc proto and service code
| Commit: | b872233 | |
|---|---|---|
| Author: | sunhailinLeo | |
:hammer version 1.0.0