From a70e583487565226b43ddc31072a81c478d40c27 Mon Sep 17 00:00:00 2001 From: MeloAlright Date: Mon, 8 Apr 2024 23:49:32 +0800 Subject: [PATCH] Update README.md --- README.md | 60 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 975adc9..d6182ec 100644 --- a/README.md +++ b/README.md @@ -192,13 +192,40 @@ $ 3body // > true ``` -##### Large Language Model +## Summary + +|Token|3body-lang|Explanation| +|---|---|---| +|let|给|"give"| +|=|以|"as"| +|const|思想钢印|"thoughtcontrou"| +|+|前进|"go forward"| +|-|降维|"dimension reduction"| +|true|这是计划的一部分|"It's part of the plan."| +|false|主不在乎|"The Lord doesn't care."| +|fn|法则|"rule"| +|while|面壁|"face the wall"| +|break|破壁|"break the wall"| +|continue|延绪|"continue"| +|print|广播|"broadcast"| +|sleep|冬眠|"hibernation"| +|clear|二向箔清理|"two-way foil cleaning"| +|exit|毁灭|"destroy"| +|deep-equal|没关系的都一样|"It's okay. It's all the same."| + +## 🤗 Large Language Model + +三体编程语言可以通过 "智子工程" 加载本地大语言模型进行推理,不过目前仍然是一个实验功能。 + +Able to use three body language sophon to load a local LLM for reasoning, inspired by [wiki/Sophon](https://three-body-problem.fandom.com/wiki/Sophon) and powered by [rustformers/llm](https://github.com/rustformers/llm). + +##### Sophon 智子工程 ```shell 智子工程({ "type": , "path": , "prompt": }) ``` -`properties:` +##### Initialize Properties 初始化参数 |property|type|Explanation| |---|---|---| @@ -206,8 +233,7 @@ $ 3body |path|string|模型所在路径| |prompt|string|提示词| - -`interface:` +##### APIs |property|type|Explanation| |---|---|---| @@ -216,8 +242,7 @@ $ 3body |infer|BuiltinFunc|执行推理的方法| |close|BuiltinFunc|关闭会话| - -`example:` +##### Reasoning 本地推理 ```rust let 智子 = fn () { @@ -230,28 +255,7 @@ let 智子 = fn () { // > 推理中... ``` -推理示例: [runs/8582743599](https://github.com/rustq/3body-lang/actions/runs/8582743599/job/23521175335#step:5:8796) - -## Summary - -|Token|3body-lang|Explanation| -|---|---|---| -|let|给|"give"| -|=|以|"as"| -|const|思想钢印|"thoughtcontrou"| -|+|前进|"go forward"| -|-|降维|"dimension reduction"| -|true|这是计划的一部分|"It's part of the plan."| -|false|主不在乎|"The Lord doesn't care."| -|fn|法则|"rule"| -|while|面壁|"face the wall"| -|break|破壁|"break the wall"| -|continue|延绪|"continue"| -|print|广播|"broadcast"| -|sleep|冬眠|"hibernation"| -|clear|二向箔清理|"two-way foil cleaning"| -|exit|毁灭|"destroy"| -|deep-equal|没关系的都一样|"It's okay. It's all the same."| +Reasoning Example 推理示例: [runs/8582743599](https://github.com/rustq/3body-lang/actions/runs/8582743599/job/23521175335#step:5:8796) ## Development