Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clue-ai/ChatYuan
/ functions
Functions
15 in github.com/clue-ai/ChatYuan
⨍
Functions
15
◇
Types & classes
1
↓ 2 callers
Function
answer
sample:是否抽样。生成任务,可以设置为True; top_p:0-1之间,生成的内容越多样
app_gradio.py:53
↓ 1 callers
Function
ChatYuan
(api_key, text_prompt, top_p)
app_gradio.py:191
↓ 1 callers
Function
T5Trainer
()
distributed-training/train.py:124
↓ 1 callers
Function
postprocess
(text)
app_gradio.py:33
↓ 1 callers
Function
prepare_data
()
distributed-training/data.py:8
↓ 1 callers
Function
preprocess
(text)
app_gradio.py:27
↓ 1 callers
Function
train
用于训练的方法 Function to be called for training with the parameters passed from main function
distributed-training/train.py:43
↓ 1 callers
Function
validate
用于验证的方法:输入用于验证的数据,返回模型预测的结果和正确的标签 Function to evaluate model for predictions
distributed-training/train.py:85
Method
__getitem__
return the input ids, attention masks and target ids
distributed-training/dialogdataset.py:45
Method
__init__
Initializes a Dataset class Args: data_list: 输入的数据列表, dict item tokenizer (transformers.tokenizer): Transfor
distributed-training/dialogdataset.py:24
Method
__len__
returns the length of dataframe
distributed-training/dialogdataset.py:40
Function
chatyuan_bot
(input, history, top_p, temperature, num)
app_gradio.py:93
Function
chatyuan_bot_api
(api_key, input, history, top_p, num)
app_gradio.py:213
Function
chatyuan_bot_regenerate
(input, history, top_p, temperature, num)
app_gradio.py:115
Function
clear_session
()
app_gradio.py:89