You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
完整配置示例
支持的模型及对应关系
将原
ApiType拆成ModelName和ModelVersion,对应关系如下表,其中*表示没有匹配时的默认值删除了
top_k参数,修改了拼写错误um_beams,max_tokens修改为512模型相关默认值设置为Sakura 1.0,注意Sakura32B 0.9*需将
ModelName设置为Sakura字典
字典配置项
UseDict默认为False,设置为True才会启用字典功能DictMode默认为Full,为Full时传递整个字典,为Partial或其他时,传递当前翻译句子包含的字典部分Dict默认为空字符串字典配置(Dict)
{"src":["dst","info"]},发给sakura的字典为src->dst #infoinfo没有可以写成{"src":["dst"]}或者{"src":"dst"},此时发给sakura的字典为src->dst{"たちばな":"橘","橘":["橘"],"あやの":["绫乃","女"],"綾乃":["绫乃","女"]}存疑
frequency_penalty目前设置为0.2,暂时没有加入退化检测ReadToEnd读取responseStream时可能会导致游戏卡顿(即读取HttpWebRequest时,asyncResult.IsCompleted为真时,读取仍有可能阻塞,其中DeekSeek API的流式传输已关闭),我个人后续丢到线程池解决了,llama.cpp的服务端暂时没发现有问题Id和生成插件名称可考虑改为SakuraTranslate,官方插件均以Translate结尾