jues

Results 4 issues of jues

Hi, the function `optimize_torch_model` accepts a save_dir param to save the final model. ``` optimized_model = optimize_torch_model( model, batch_size=bs, input_sizes=input_sizes, save_dir=save_dir ) ``` but how can I load the `optimized_model`...

question

Hi, below is my function from Megatron-LM ``` class _ReduceFromModelParallelRegion(torch.autograd.Function): """All-redcue the input from the model parallel region.""" @staticmethod def forward(ctx, input_): return _reduce(input_) @staticmethod def backward(ctx, grad_output): return grad_output...

项目名称:[CodeGeeX](https://github.com/THUDM/CodeGeeX):CodeGeeX 开源代码生成模型和vscode插件 项目地址:http://keg.cs.tsinghua.edu.cn/codegeex 项目简介: # CodeGeeX: 多语言代码生成模型 CodeGeeX是一个具有130亿参数的多编程语言代码生成预训练模型。CodeGeeX采用华为MindSpore框架实现,在鹏城实验室“鹏城云脑II”中的192个节点(共1536个国产[昇腾910 AI处理器](https://e.huawei.com/cn/products/servers/ascend))上训练而成。截至2022年6月22日,CodeGeeX历时两个月在20多种编程语言的代码语料库(>8500亿Token)上预训练得到。CodeGeeX有以下特点: * **高精度代码生成**:支持生成Python、C++、Java、JavaScript和Go等多种主流编程语言的代码,在HumanEval-X代码生成任务上取得47%~60%求解率,较其他开源基线模型有更佳的平均性能。[代码生成示例](https://models.aminer.cn/codegeex/zh-CN) * **跨语言代码翻译**:支持代码片段在不同编程语言间进行自动翻译转换,翻译结果正确率高,在HumanEval-X代码翻译任务上超越了其它基线模型。[代码翻译示例](https://models.aminer.cn/codegeex/zh-CN/codeTranslator) * **自动编程插件**:CodeGeeX插件现已上架VSCode插件市场(完全免费),用户可以通过其强大的少样本生成能力,自定义代码生成风格和能力,更好辅助代码编写。[插件下载](https://marketplace.visualstudio.com/items?itemName=aminer.codegeex) * **模型跨平台开源**: 所有代码和模型权重开源开放,用作研究用途。CodeGeeX同时支持昇腾和英伟达平台,可在单张昇腾910或英伟达V100/A100上实现推理。[申请模型权重](https://models.aminer.cn/codegeex/download/request) 项目截图 (6张以内): ![image](https://user-images.githubusercontent.com/95405836/199429127-5ebd8a16-ff87-468b-a6bf-74213a027120.png) ![stealth](https://lfs.aminer.cn/misc/wangshan/pretrain/codegeex/stealth_mode.gif) ![interact](https://lfs.aminer.cn/misc/wangshan/pretrain/codegeex/interactive_mode.gif) ![prompt](https://lfs.aminer.cn/misc/wangshan/pretrain/codegeex/prompt_mode.gif)

issue-230