Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kedreamix/Xinjing-LM
/ functions
Functions
10 in github.com/Kedreamix/Xinjing-LM
⨍
Functions
10
◇
Types & classes
2
↓ 1 callers
Function
inference_with_deepseek_r1
使用DeepSeek R1进行推理,并轮换API密钥
data_gen/inference_r1.py:14
↓ 1 callers
Function
process_dataset
(input_file, output_file, error_file, limit=1000, num_threads=4)
data_gen/translate_v3.py:63
↓ 1 callers
Function
process_dataset_in_reverse
处理整个数据集,但最多只处理前limit条记录,从最后一条记录开始倒序处理
data_gen/inference_r1.py:49
↓ 1 callers
Function
test_model
(model, tokenizer, prompt, max_length=8192)
test_llm.py:4
↓ 1 callers
Function
train
()
train_sft.py:39
↓ 1 callers
Function
translate_text
使用OpenAI API进行翻译
data_gen/translate_v3.py:13
Function
formatting_prompts_func
(example)
train_sft.py:74
Function
generate
( message: str, chat_history: list[tuple[str, str]], system_prompt: str, max_n
app.py:23
Function
process_item
处理单个数据项并返回翻译结果
data_gen/translate_v3.py:53
Function
process_item
处理单个数据项
data_gen/inference_r1.py:38