Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Apr 8, 2024
1 parent 002ebd5 commit a70e583
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,48 @@ $ 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": <string>, "path": <string>, "prompt": <string> })
```
`properties:`
##### Initialize Properties 初始化参数
|property|type|Explanation|
|---|---|---|
|type|string|模型类型|
|path|string|模型所在路径|
|prompt|string|提示词|
`interface:`
##### APIs
|property|type|Explanation|
|---|---|---|
Expand All @@ -216,8 +242,7 @@ $ 3body
|infer|BuiltinFunc|执行推理的方法|
|close|BuiltinFunc|关闭会话|
`example:`
##### Reasoning 本地推理
```rust
let 智子 = fn () {
Expand All @@ -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
Expand Down

0 comments on commit a70e583

Please sign in to comment.