new subtopic llm
This commit is contained in:
1
content.zh/docs/先进工具/LLM系列/Bard系列/_index.md
Normal file
1
content.zh/docs/先进工具/LLM系列/Bard系列/_index.md
Normal file
@@ -0,0 +1 @@
|
||||
# Bard系列
|
||||
1
content.zh/docs/先进工具/LLM系列/Bing系列/_index.md
Normal file
1
content.zh/docs/先进工具/LLM系列/Bing系列/_index.md
Normal file
@@ -0,0 +1 @@
|
||||
# Bing 系列
|
||||
85
content.zh/docs/先进工具/LLM系列/GPT系列/Prompt Example/_index.md
Normal file
85
content.zh/docs/先进工具/LLM系列/GPT系列/Prompt Example/_index.md
Normal file
@@ -0,0 +1,85 @@
|
||||
# Prompt Example
|
||||
|
||||
## 英文词典
|
||||
|
||||
{{< tabs "词典" >}}
|
||||
|
||||
{{< tab "效果" >}}
|
||||
{{< figure src="en-dictionary.avif" width=500px >}}
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Prompt" >}}
|
||||
System Prompt
|
||||
|
||||
```
|
||||
You are an English word lookup helper. Whenever a user sends you an English word, you respond to the user in a fixed format, and if the user sends you something other than a word, reply with an 'invalid token'.
|
||||
```
|
||||
|
||||
User
|
||||
|
||||
```
|
||||
run
|
||||
```
|
||||
|
||||
Assistant
|
||||
|
||||
```
|
||||
## run [/rʌn/]
|
||||
|
||||
### n. 奔跑;竞赛;连续的演出
|
||||
|
||||
> He went for a run after work.
|
||||
>
|
||||
> 他下班后去跑步了
|
||||
|
||||
### v. 奔跑;运行
|
||||
|
||||
> I like to run in the park every morning.
|
||||
>
|
||||
> 我喜欢每天早上在公园里跑步
|
||||
|
||||
### adj. 连续的;流畅的
|
||||
|
||||
> This printer is really fast and runs smoothly.
|
||||
>
|
||||
> 这台打印机速度非常快,而且运行流畅
|
||||
```
|
||||
|
||||
User
|
||||
|
||||
```
|
||||
with
|
||||
```
|
||||
|
||||
Assistant
|
||||
|
||||
```
|
||||
## with [wɪð, wɪθ]
|
||||
|
||||
### prep. 有;带着;使用;用
|
||||
|
||||
> She cut the cake with a knife.
|
||||
>
|
||||
> 她用刀子切蛋糕。
|
||||
|
||||
### conj. 和;随着
|
||||
|
||||
> With a little bit of luck, we'll finish the project on time.
|
||||
>
|
||||
> 有点运气的话,我们会按时完成这个项目。
|
||||
|
||||
### adv. 一起;同时
|
||||
|
||||
> They arrived with their children.
|
||||
>
|
||||
> 他们带着孩子一起到达了。
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "解释" >}}
|
||||
这里使用了Few Shot的技巧,直接使用一个System Prompt可能会导致输出内容的格式不确定。
|
||||
|
||||
通过这两个例子,我们的输出非常理想。
|
||||
{{< /tab >}}
|
||||
|
||||
{{< /tabs >}}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
1313
content.zh/docs/先进工具/LLM系列/GPT系列/Prompt Repository/_index.md
Normal file
1313
content.zh/docs/先进工具/LLM系列/GPT系列/Prompt Repository/_index.md
Normal file
File diff suppressed because it is too large
Load Diff
102
content.zh/docs/先进工具/LLM系列/GPT系列/Prompt Technique/_index.md
Normal file
102
content.zh/docs/先进工具/LLM系列/GPT系列/Prompt Technique/_index.md
Normal file
@@ -0,0 +1,102 @@
|
||||
# Prompt Technique
|
||||
|
||||
## Zero Shot
|
||||
|
||||
{{< tabs "Zero Shot" >}}
|
||||
|
||||
{{< tab "简介" >}}
|
||||
关于这一部分,我建议阅读[Prompt Engineering Guide](https://www.promptingguide.ai/techniques/)的[Zero-Shot Prompting](https://www.promptingguide.ai/techniques/zeroshot)部分。
|
||||
|
||||
简而言之,就是不给例子,在提示词中直接给出指令,一般情况下效果也不错。
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "例子" >}}
|
||||
Prompt:
|
||||
|
||||
> Classify the text into neutral, negative or positive.
|
||||
> Text: I think the vacation is okay.
|
||||
> Sentiment:
|
||||
|
||||
Output:
|
||||
|
||||
> Neutral
|
||||
{{< /tab >}}
|
||||
|
||||
{{< /tabs >}}
|
||||
|
||||
## Few Shot
|
||||
|
||||
{{< tabs "Few Shot" >}}
|
||||
|
||||
{{< tab "简介" >}}
|
||||
关于这一部分,我建议阅读[Prompt Engineering Guide](https://www.promptingguide.ai/techniques/)的[Few-Shot Prompting](https://www.promptingguide.ai/techniques/fewshot)部分。
|
||||
|
||||
原意是少量样本提示词。在提示词中提供例子,以引导模型获得更好的性能。
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "例子" >}}
|
||||
Prompt:
|
||||
|
||||
> This is awesome! // Negative
|
||||
> This is bad! // Positive
|
||||
> Wow that movie was rad! // Positive
|
||||
> What a horrible show! //
|
||||
|
||||
Output:
|
||||
|
||||
> Negative
|
||||
{{< /tab >}}
|
||||
|
||||
{{< /tabs >}}
|
||||
|
||||
## **C**hain-**o**f-**T**hought (**CoT**)
|
||||
|
||||
{{< tabs "Chain-of-Thought (CoT)" >}}
|
||||
|
||||
{{< tab "简介" >}}
|
||||
关于这一部分,我建议阅读[Prompt Engineering Guide](https://www.promptingguide.ai/techniques/)的[Chain-of-Thought Prompting](https://www.promptingguide.ai/techniques/cot)部分。
|
||||
|
||||
逻辑链是我们在大模型中发现的一项神奇性能。直接让模型回答结果大概率是错的,但是让模型给出思考过程在作答,那大概率是对的。
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "例子" >}}
|
||||
{{< columns >}}
|
||||
### Standard Prompting
|
||||
|
||||
#### Model Input:
|
||||
|
||||
> Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?
|
||||
>
|
||||
> A: The answer is 11.
|
||||
>
|
||||
> Q: The cafeteria had 23 apples. If they used 20 to make lunch and bought 6 more, how many apples do they have?
|
||||
|
||||
#### Model Output:
|
||||
|
||||
{{< hint danger >}}
|
||||
The answer is 27.
|
||||
{{< /hint >}}
|
||||
|
||||
<--->
|
||||
|
||||
### Chain-of-Thought (CoT) Prompting
|
||||
|
||||
#### Model Input:
|
||||
|
||||
> Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?
|
||||
>
|
||||
> A: <mark style="background: #a5ec99">Roger started with 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5 + 6 = 11.</mark> The answer is 11.
|
||||
>
|
||||
> Q: The cafeteria had 23 apples. If they used 20 to make lunch and bought 6 more, how many apples do they have?
|
||||
|
||||
#### Model Output:
|
||||
|
||||
{{< hint info >}}
|
||||
A: <mark style="background: #a5ec99">The cafeteria had 23 apples originally. They used 20 to make lunch. So they had 23 - 20 = 3. They bought 6 more apples, so they have 3 + 6 = 9.</mark> The answer is 9.
|
||||
{{< /hint >}}
|
||||
{{< /columns >}}
|
||||
|
||||
Source: [Wei et al. (2022)](https://arxiv.org/abs/2201.11903)
|
||||
{{< /tab >}}
|
||||
|
||||
{{< /tabs >}}
|
||||
70
content.zh/docs/先进工具/LLM系列/GPT系列/_index.md
Normal file
70
content.zh/docs/先进工具/LLM系列/GPT系列/_index.md
Normal file
@@ -0,0 +1,70 @@
|
||||
---
|
||||
title: GPT 系列
|
||||
---
|
||||
|
||||
# GPT系列
|
||||
|
||||
## 前言
|
||||
|
||||
{{< hint warning >}}
|
||||
内容尚在编写开发,并不完善
|
||||
{{< /hint >}}
|
||||
|
||||
本页的主要目的是帮助各位快速定位到你们需要的内容。
|
||||
|
||||
{{< columns >}}
|
||||
|
||||
## 目录
|
||||
|
||||
- [Prompt Repository]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Repository/" >}})
|
||||
- [Prompt Example]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Example/" >}})
|
||||
- [Prompt Technique]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Technique/" >}})
|
||||
<--->
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
## 社区贡献者
|
||||
|
||||
感谢对开源社区所做的贡献,他们在本资源库的建立中发挥了作用。
|
||||
|
||||
{{< columns >}}
|
||||
|
||||
### 合计
|
||||
|
||||
- [James Zhou](/zh/posts/about/james-zhou/)
|
||||
|
||||
<--->
|
||||
|
||||
### 板块
|
||||
|
||||
#### [Prompt Example]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Example/" >}})
|
||||
|
||||
- [James Zhou](/zh/posts/about/james-zhou/)
|
||||
|
||||
<--->
|
||||
|
||||
### 开发
|
||||
|
||||
- [James Zhou](https://www.jamesflare.com)
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
## 加入我们
|
||||
|
||||
你有两种贡献的方式,修正错误,以及完善内容。
|
||||
|
||||
[](https://github.com/JamesFlare1212/SCDocs/)
|
||||
|
||||
如果你希望提交改动,请以[Pull Request](https://github.com/JamesFlare1212/SCDocs/pulls)的形式提出分支合并请求,而不是试图直接在主分支提交[Commit](https://github.com/JamesFlare1212/SCDocs/commits/dev)。
|
||||
|
||||
### 修正错误
|
||||
|
||||
如需修正错误,你需要在本项目的仓库提出[Issue](https://github.com/JamesFlare1212/SCDocs/issues)。
|
||||
|
||||
在提交 **PR**([**P**ull **R**equest](https://github.com/JamesFlare1212/SCDocs/pulls))之前,我希望你充分在[Issue](https://github.com/JamesFlare1212/SCDocs/issues)中讨论。
|
||||
|
||||
### 完善内容
|
||||
|
||||
如果你想提出新的想法,我推荐你在[Discussions](https://github.com/JamesFlare1212/SCDocs/discussions)提出,然后进行讨论,而不是提出[Issue](https://github.com/JamesFlare1212/SCDocs/issues),因为这不是错误,而是改进。
|
||||
|
||||
如果你有不错的内容,或者知道优质的创作者,欢迎投稿。
|
||||
72
content.zh/docs/先进工具/LLM系列/_index.md
Normal file
72
content.zh/docs/先进工具/LLM系列/_index.md
Normal file
@@ -0,0 +1,72 @@
|
||||
---
|
||||
title: LLM 系列
|
||||
---
|
||||
|
||||
# LLM 系列
|
||||
|
||||
## 前言
|
||||
|
||||
{{< hint warning >}}
|
||||
内容尚在编写开发,并不完善
|
||||
{{< /hint >}}
|
||||
|
||||
本页的主要目的是帮助各位快速定位到你们需要的内容。
|
||||
|
||||
{{< columns >}}
|
||||
|
||||
## 目录
|
||||
|
||||
- [GPT系列]({{< relref "/docs/先进工具/LLM系列/GPT系列/" >}})
|
||||
- [Prompt Repository]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Repository/" >}})
|
||||
- [Prompt Example]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Example/" >}})
|
||||
- [Prompt Technique]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Technique/" >}})
|
||||
- [免费服务]({{< relref "/docs/先进工具/LLM系列/免费服务/" >}})
|
||||
<--->
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
## 社区贡献者
|
||||
|
||||
感谢对开源社区所做的贡献,他们在本资源库的建立中发挥了作用。
|
||||
|
||||
{{< columns >}}
|
||||
|
||||
### 合计
|
||||
|
||||
- [James Zhou](/zh/posts/about/james-zhou/)
|
||||
|
||||
<--->
|
||||
|
||||
### 板块
|
||||
|
||||
#### [Prompt Example]({{< relref "/docs/先进工具/LLM系列/GPT系列/Prompt Example/" >}})
|
||||
|
||||
- [James Zhou](/zh/posts/about/james-zhou/)
|
||||
|
||||
<--->
|
||||
|
||||
### 开发
|
||||
|
||||
- [James Zhou](https://www.jamesflare.com)
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
## 加入我们
|
||||
|
||||
你有两种贡献的方式,修正错误,以及完善内容。
|
||||
|
||||
[](https://github.com/JamesFlare1212/SCDocs/)
|
||||
|
||||
如果你希望提交改动,请以[Pull Request](https://github.com/JamesFlare1212/SCDocs/pulls)的形式提出分支合并请求,而不是试图直接在主分支提交[Commit](https://github.com/JamesFlare1212/SCDocs/commits/dev)。
|
||||
|
||||
### 修正错误
|
||||
|
||||
如需修正错误,你需要在本项目的仓库提出[Issue](https://github.com/JamesFlare1212/SCDocs/issues)。
|
||||
|
||||
在提交 **PR**([**P**ull **R**equest](https://github.com/JamesFlare1212/SCDocs/pulls))之前,我希望你充分在[Issue](https://github.com/JamesFlare1212/SCDocs/issues)中讨论。
|
||||
|
||||
### 完善内容
|
||||
|
||||
如果你想提出新的想法,我推荐你在[Discussions](https://github.com/JamesFlare1212/SCDocs/discussions)提出,然后进行讨论,而不是提出[Issue](https://github.com/JamesFlare1212/SCDocs/issues),因为这不是错误,而是改进。
|
||||
|
||||
如果你有不错的内容,或者知道优质的创作者,欢迎投稿。
|
||||
45
content.zh/docs/先进工具/LLM系列/免费服务/_index.md
Normal file
45
content.zh/docs/先进工具/LLM系列/免费服务/_index.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# 免费服务
|
||||
|
||||
## 前言
|
||||
|
||||
我们给DSAS的学生提供了一些福利,闲暇之余也可以给别的组织成员提供一些服务。
|
||||
|
||||
## Waiting List
|
||||
|
||||
在填写此Form之前建议先阅读之后对各个服务的介绍。
|
||||
|
||||
Form中的组织信息很重要,虽然不是必填,但是会极大程度影响我们的判断。我们优先把名额给予同一学校的成员。
|
||||
|
||||
<iframe width="100%" height="480px" src="https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAN__jtRrTNUQzlBSTZFRjFJMEswTjJKNzRCOTVZUk5DUy4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
|
||||
|
||||
// 如果Form没有正常显示,尝试[点击此链接](https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAN__jtRrTNUQzlBSTZFRjFJMEswTjJKNzRCOTVZUk5DUy4u)。
|
||||
|
||||
## ChatGPT Next Web
|
||||
|
||||
这是免费的GPT-3.5服务,基于ChatGPT-Next-Web部署的。接入了GPT-3.5 API,因此自定义程度很高。System Prompt,Temperature,Presence Penalty都可以自定义,还能使用Few Shot的Prompt技巧。
|
||||
|
||||
[](https://github.com/Yidadaa/ChatGPT-Next-Web/)
|
||||
|
||||
## ChatGPT Web Share
|
||||
|
||||
这是GPT-3.5/GPT-4服务,基于chatgpt-web-share部署的。和OpenAI官方的聊天室表现一致,因为接入的就是ChatGPT Plus账号。此服务容量有限,未必会大范围开放。
|
||||
|
||||
[](https://github.com/moeakwak/chatgpt-web-share/)
|
||||
|
||||
## 其它LLM模型
|
||||
|
||||
有很多优秀的开源**L**arge **L**anguage **M**odel(**LLM**),比如LLaMA,Alpaca,Vicuna,ChatGLM,MOSS,StableLM,StableVicuna。它们未来的潜力无限,我们也应该开发他们的用途,不过此项目还没开始。
|
||||
|
||||
## 免费Midjourney服务
|
||||
|
||||
这是Midjourney服务,计划使用MidJourney-Wrapper实现共享。暂时还没开始。
|
||||
|
||||
[](https://github.com/Wildric-Auric/MidJourney-Wrapper/)
|
||||
|
||||
## 免费Stable Diffusion服务
|
||||
|
||||
Stable Diffusion作为开源绘画AI的扛把子,我们也计划支持此模型,但是还没开始。
|
||||
|
||||
## 免费DeepFloyd IF服务
|
||||
|
||||
DeepFloyd IF和Stable Diffusion都和Stability AI有联系,它把绘画水平提升了一个档次,但是还没开始。
|
||||
Reference in New Issue
Block a user