{"id":13754177,"url":"https://github.com/yongzhuo/chatglm-maths","last_synced_at":"2025-10-11T20:13:49.864Z","repository":{"id":159537443,"uuid":"615760891","full_name":"yongzhuo/chatglm-maths","owner":"yongzhuo","description":"chatglm-6b微调/LORA/PPO/推理, 样本为自动生成的整数/小数加减乘除运算, 可gpu/cpu","archived":false,"fork":false,"pushed_at":"2023-08-24T11:36:27.000Z","size":289,"stargazers_count":164,"open_issues_count":5,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-03T08:05:25.138Z","etag":null,"topics":["chatglm","chatgpt","fine-tuning","maths","maths-problem","ppo"],"latest_commit_sha":null,"homepage":"https://blog.csdn.net/rensihui","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yongzhuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-18T15:50:48.000Z","updated_at":"2024-12-07T12:10:26.000Z","dependencies_parsed_at":"2024-08-03T09:17:17.902Z","dependency_job_id":null,"html_url":"https://github.com/yongzhuo/chatglm-maths","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yongzhuo/chatglm-maths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhuo%2Fchatglm-maths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhuo%2Fchatglm-maths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhuo%2Fchatglm-maths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhuo%2Fchatglm-maths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yongzhuo","download_url":"https://codeload.github.com/yongzhuo/chatglm-maths/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongzhuo%2Fchatglm-maths/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008577,"owners_count":26084480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatglm","chatgpt","fine-tuning","maths","maths-problem","ppo"],"created_at":"2024-08-03T09:01:47.422Z","updated_at":"2025-10-11T20:13:49.841Z","avatar_url":"https://github.com/yongzhuo.png","language":"Python","funding_links":[],"categories":["A01_文本生成_文本对话"],"sub_categories":["大语言对话模型及数据"],"readme":"# chatglm-maths\nchatglm-6b微调/LORA/PPO/推理, 样本为自动生成的整数/小数加减乘除运算, 可gpu/cpu\n\n## 踩坑\n```python\n1. eps=1e-5(不要改小), 半精度float16, 以及LN采用的是Post-LN(泛化性更好) + DeepNorm, 【害, Attention前也有LN】目的是大模型为了防止梯度溢出等;\n2. 模型输入输出, 默认的tokenization_chatglm.py/modeling_chatglm.py不能用, 因为那是完全为生成generate设置的, 需要自己写好所有缩入参数, 或者机子改成适配的;\n   2.1 ChatGLMModel中, get_masks()正常, get_position_ids()函数中‘context_length = seq.index(150004) + 1’ 改为 ‘context_length = len(seq)’;\n   2.2 训练输入input_ids格式暂定为(训练后post-padding, 推理前pre-padding[tokenization_chatglm.py默认pre-padding])\n       x: prompt_1 + \"_\" + text_1 + \"\\n\" + prompt_2 + [gMASK] + [BOS] + \"_\" + text_2 + [PAD]*N\n   2.3 训练输入label_ids格式暂定为(CrossEntropyLoss默认忽略-100不参与计算loss)  \n       y = [-100]*len(text_1) + [BOS] + text_2 + [EOS] + [-100]*N\n   2.4 注意position/mask(自带的只是推理用的batch_size=1, 所以训练输入还得自己写), 可参考GLM-130的README.md, huozhe 查看GLM-1源码https://github.com/THUDM/GLM/blob/main/tasks/seq2seq/dataset.py\n3. 注意chatglm-6b权重是float16的, 不过计算loss时候会转成float32计算, 最后loss再转回float16更新梯度;\n4. ChatGLMTokenizer有时候会报奇奇怪怪的错误, 建议生成时候设置max_new_tokens, 最大{\"max_new_tokens\": 2048}; decode有时候会出现不存在id;\n5. 低秩自适应LORA, RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!\n   尝试 transformers升级到最新, get_peft_model后再.cuda(), device_map={'':torch.cuda.current_device()}, \n```\n\n## 微调数据\n1. 原始数据来自[https://github.com/LYH-YF/MWPToolkit](https://github.com/LYH-YF/MWPToolkit)\n\n      处理后的微调数据(算式/解方程)-MWP: [https://huggingface.co/datasets/Macropodus/MWP-Instruct](https://huggingface.co/datasets/Macropodus/MWP-Instruct)\n\n3. 大数加减乘除来自: [https://github.com/liutiedong/goat.git ](https://github.com/liutiedong/goat.git )\n\n\n## LoRA权重\n```shell\nBaichuan-7B-GPT4ForALL: https://huggingface.co/Macropodus/MWP-Instruct\nBloomz-7B-GPT4ForALL: https://huggingface.co/Macropodus/MWP-Instruct\nChatGLM-6B-GPT4ForALL: https://huggingface.co/Macropodus/MWP-Instruct\nLlaMA-7B-GPT4ForALL: https://huggingface.co/Macropodus/MWP-Instruct\nChatGLM-6B-MWP: https://huggingface.co/Macropodus/MWP-Instruct\n```\n\n## 数据集-中文\n - [https://github.com/tatsu-lab/stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)\n - [https://github.com/LianjiaTech/BELLE](https://github.com/LianjiaTech/BELLE)\n - [https://github.com/carbonz0/alpaca-chinese-dataset](https://github.com/carbonz0/alpaca-chinese-dataset)\n   \n\n## 环境配置\n```shell\ntransformers\u003e=4.26.1\ncpm_kernels==1.0.11\nicetk==0.0.4\ntorch\u003e=1.10.1\nrouge==1.0.1\nnltk==3.6.6\npeft\u003e=0.2.0\nnumpy\ntqdm\n\nlion_pytorch\nmacropodus\ntrl\u003e=0.4.1\n```\n\n## 微调-计算题\n```shell\nlora\n微调: python c00_toy_lora_train_6b.py\n推理: python p00_toy_lora_predict_6b.py\n\nppo\n训练: python t10_toy_trl_train_ppo.py\n测试: python t10_toy_trl_predict_ppo.py\n\n6b\n微调: python c00_toy_cpu_train_6b.py\n推理: python p00_toy_cpu_predit_6b.py\n\nsmall-layer\n微调: python c01_toy_cpu_train_small.py\n推理: python p01_toy_cpu_predict_small.py\n```\n\n\n## 参考/感谢\n - [https://github.com/THUDM/ChatGLM-6B](https://github.com/THUDM/ChatGLM-6B)\n - [https://github.com/THUDM/GLM](https://github.com/THUDM/GLM)\n - [https://github.com/tatsu-lab/stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)\n - [https://github.com/LianjiaTech/BELLE](https://github.com/LianjiaTech/BELLE)\n - [https://github.com/huggingface/peft](https://github.com/huggingface/peft)\n - [https://github.com/mymusise/ChatGLM-Tuning](https://github.com/mymusise/ChatGLM-Tuning)\n - [https://github.com/bojone/bert4keras](https://github.com/bojone/bert4keras)\n - [trl](https://github.com/lvwerra/trl)\n - [math23k](https://aclanthology.org/D17-1088)\n\n## 推理日志toy\n```cpu\ngenerator_calculate_line: ('13+75=', '13+75=88')\ntokenizer.vocab_size: 150344\neval:   0%|                                                                                                                                                                      | 0/1 [00:00\u003c?, ?it/s]batch_query: ['简便运算: 98+83= 剖析: 98+83=181']\nbatch_qtext_0: 简便运算: 98+83= 剖析:\nbatch_qans_0: 98+83=181\nresponse_0: 98+83=171\n{'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\n请输入:\n25.31+86.35=\n请稍等...\n25.31+86.35=101.66\n```\n\n\n## 微调日志toy\n```cpu\ngenerator_calculate_line: ('13+75=', '13+75=88')\ntokenizer.vocab_size: 150344\nLoading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:10\u003c00:00,  1.31s/it]\ntransformer.word_embeddings.weight False\n......\ntransformer.layers.26.mlp.dense_4h_to_h.bias False\ntransformer.layers.27.input_layernorm.weight True\ntransformer.layers.27.input_layernorm.bias True\ntransformer.layers.27.attention.query_key_value.weight True\ntransformer.layers.27.attention.query_key_value.bias True\ntransformer.layers.27.attention.dense.weight True\ntransformer.layers.27.attention.dense.bias True\ntransformer.layers.27.post_attention_layernorm.weight True\ntransformer.layers.27.post_attention_layernorm.bias True\ntransformer.layers.27.mlp.dense_h_to_4h.weight True\ntransformer.layers.27.mlp.dense_h_to_4h.bias True\ntransformer.layers.27.mlp.dense_4h_to_h.weight True\ntransformer.layers.27.mlp.dense_4h_to_h.bias True\ntransformer.final_layernorm.weight True\ntransformer.final_layernorm.bias True\nmodel.chat start\n13+75=88, but that's not the correct answer. The correct answer is 13+75=88, which is 90.\n/anaconda3/envs/py371/lib/python3.7/site-packages/transformers/optimization.py:395: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set `no_deprecation_warning=True` to disable this warning\n  FutureWarning,   \nepoch:   0%|                                                                                                                                                                    | 0/21 [00:00\u003c?, ?it/s]epochs:\n                                                                                                                                                                                                      batch_query: ['简便运算: 98+83= 剖析: 98+83=181']                                                                                                                                 | 0/8 [00:00\u003c?, ?it/s]\nepoch_global: 0, step_global: 1, step: 0, loss: 4.0625\nbatch_query: ['口算: 57.84+13.64 解: 57.84+13.64=71.48']\n                                                                                                                                                                                                      epoch_global: 0, step_global: 2, step: 1, loss: 2.5625███▌                                                                                                                | 2/8 [00:17\u003c00:51,  8.54s/it]\nbatch_query: ['计算题: 48+1 解答: 48+1=49']\n                                                                                                                                                                                                      epoch_global: 0, step_global: 3, step: 2, loss: 4.15625█████████████████████▎                                                                                             | 3/8 [00:38\u003c01:09, 13.94s/it]\nbatch_query: ['计算题: 61.65+33.05 解答: 61.65+33.05=94.7']\n                                                                                                                                                                                                      epoch_global: 0, step_global: 4, step: 3, loss: 2.40625████████████████████████████████████████                                                                           | 4/8 [01:01\u003c01:09, 17.43s/it]\nbatch_query: ['计算: 81+75 回答: 81+75=156']\n                                                                                                                                                                                                      epoch_global: 0, step_global: 5, step: 4, loss: 3.546875█████████████████████████████████████████████████████████▊                                                        | 5/8 [01:27\u003c01:01, 20.41s/it]\nepoch:   5%|███████▎                                                                                                                                                 | 1/21 [03:07\u003c1:02:30, 187.52s/it]epochs: step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [02:41\u003c00:00, 23.15s/it]\nepoch_0_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [03:07\u003c00:00, 23.44s/it]\nbatch_query: ['问题: 99+37 答案: 99+37=136']\nepoch_global: 1, step_global: 9, step: 0, loss: 3.640625                                                                                                                         | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['问题: 26.81+55.91 答案: 26.81+55.91=82.72']                                                                                                                        | 0/1 [00:00\u003c?, ?it/s]\nbatch_qtext_0: 问题: 26.81+55.91 答案:\nbatch_qans_0: 26.81+55.91=82.72\nresponse_0: 26.81+55.91=83.72\n{'rouge-1': 0.749999995, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.749999995, 'bleu': 0.0}\nepoch_global: 1, step_global: 9, step: 0\nbest_score_avg: 0.45833\n\ncurrent_mertics: {'rouge-1': 0.749999995, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.749999995, 'bleu': 0.0}\nbatch_query: ['数学题: 23.34+68.45 点拨: 23.34+68.45=91.79']\n                                                                                                                                                                                                      epoch_global: 1, step_global: 10, step: 1, loss: 2.09375\nbatch_query: ['计算: 77+14 回答: 77+14=91']█████████████▌                                                                                                                | 2/8 [00:33\u003c01:39, 16.58s/it]\n                                                                                                                                                                                                      epoch_global: 1, step_global: 11, step: 2, loss: 3.265625\nbatch_query: ['口算: 79.69+17.43= 解: 79.69+17.43=97.12']██████████████████▎                                                                                             | 3/8 [00:35\u003c00:53, 10.75s/it]\n                                                                                                                                                                                                      epoch_global: 1, step_global: 12, step: 3, loss: 2.171875\nbatch_query: ['简便运算: 59.67+86.73 剖析: 59.67+86.73=146.4']████████████████████████████████                                                                           | 4/8 [00:37\u003c00:29,  7.43s/it]\n                                                                                                                                                                                                      epoch_global: 1, step_global: 13, step: 4, loss: 2.328125\nepoch:  10%|██████████████▊                                                                                                                                            | 2/21 [03:56\u003c33:33, 105.97s/it]epochs:\nepoch_1_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:48\u003c00:00,  6.11s/it]\nbatch_query: ['初等数学: 24.29+76.26 解析: 24.29+76.26=100.55']\nepoch_global: 2, step_global: 17, step: 0, loss: 2.046875\nepoch_2_step:   0%|                                                                                                                                                              | 0/8 [00:00\u003c?, ?it/sbatch_query: ['计算题: 69.85+28.46= 解答: 69.85+28.46=98.31']\nbatch_qtext_0: 计算题: 69.85+28.46= 解答:                                                                                                                                        | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 69.85+28.46=98.31\nresponse_0: 69.85+28.46=97.21\n{'rouge-1': 0.4999999950000001, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.4999999950000001, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:07\u003c00:00,  7.83s/it]\nepoch_global: 2, step_global: 17, step: 0\nbest_score_avg: 0.33333\n\ncurrent_mertics: {'rouge-1': 0.4999999950000001, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.4999999950000001, 'bleu': 0.0}\nbatch_query: ['问题: 113.79+81.78= 答案: 113.79+81.78=195.57']\n                                                                                                                                                                                                      epoch_global: 2, step_global: 18, step: 1, loss: 1.8515625\nbatch_query: ['计算: 10.74+17.87= 回答: 10.74+17.87=28.61']\nepoch_2_step:  25%|█████████████████████████████████████▌                                                                                                                | 2/8 [00:10\u003c00:31,  5.21s/itepoch_global: 2, step_global: 19, step: 2, loss: 1.8203125\nbatch_query: ['计算: 11.64+25.07= 回答: 11.64+25.07=36.71']\nepoch_2_step:  38%|████████████████████████████████████████████████████████▎                                                                                             | 3/8 [00:13\u003c00:20,  4.15s/itepoch_global: 2, step_global: 20, step: 3, loss: 1.859375\nbatch_query: ['口算: 53.08+54.9 解: 53.08+54.9=107.98']\nepoch_2_step:  50%|███████████████████████████████████████████████████████████████████████████                                                                           | 4/8 [00:15\u003c00:14,  3.58s/itepoch_global: 2, step_global: 21, step: 4, loss: 2.078125\nepoch:  14%|██████████████████████▎                                                                                                                                     | 3/21 [04:23\u003c20:56, 69.80s/it]epochs: step:  62%|█████████████████████████████████████████████████████████████████████████████████████████████▊                                                        | 5/8 [00:18\u003c00:09,  3.28s/it]\nepoch_2_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:26\u003c00:00,  3.34s/it]\nbatch_query: ['初等数学: 102.7+68.21= 解析: 102.7+68.21=170.91']█████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:24\u003c00:00,  2.44s/it]\nepoch_global: 3, step_global: 25, step: 0, loss: 1.5390625                                                                                                                       | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['数学题: 94+19 点拨: 94+19=113']\nbatch_qtext_0: 数学题: 94+19 点拨:\nbatch_qans_0: 94+19=113                                                                                                                                                          | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 94+19=103\n{'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04\u003c00:00,  4.11s/it]\nepoch_global: 3, step_global: 25, step: 0\nbest_score_avg: 0.0\n\ncurrent_mertics: {'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\nbatch_query: ['数学题: 37.94+23.99 点拨: 37.94+23.99=61.93']\n                                                                                                                                                                                                      epoch_global: 3, step_global: 26, step: 1, loss: 1.578125\nbatch_query: ['问: 51.16+14.21= 答: 51.16+14.21=65.37']█▌                                                                                                                | 2/8 [00:06\u003c00:20,  3.41s/it]\n                                                                                                                                                                                                      epoch_global: 3, step_global: 27, step: 2, loss: 1.7265625\nbatch_query: ['问题: 13.89+40.09 答案: 13.89+40.09=53.98']█████████████████▎                                                                                             | 3/8 [00:09\u003c00:15,  3.08s/it]\n                                                                                                                                                                                                      epoch_global: 3, step_global: 28, step: 3, loss: 1.9765625\nbatch_query: ['口算: 68+33 解: 68+33=101']████████████████████████████████████████████████████                                                                           | 4/8 [00:11\u003c00:11,  2.83s/it]\n                                                                                                                                                                                                      epoch_global: 3, step_global: 29, step: 4, loss: 3.125\nepoch:  19%|█████████████████████████████▋                                                                                                                              | 4/21 [04:45\u003c14:29, 51.16s/it]epochs:\nepoch_3_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:22\u003c00:00,  2.82s/it]\nbatch_query: ['简便运算: 52+48 剖析: 52+48=100']\nepoch_global: 4, step_global: 33, step: 0, loss: 2.921875\nepoch_4_step:   0%|                                                                                                                                                              | 0/8 [00:00\u003c?, ?it/sbatch_query: ['口算: 11.71+0.36= 解: 11.71+0.36=12.07']\nbatch_qtext_0: 口算: 11.71+0.36= 解:                                                                                                                                             | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 11.71+0.36=12.07\nresponse_0: 11.71+0.36=12.07\n{'rouge-1': 0.999999995, 'rouge-2': 0.999999995, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:06\u003c00:00,  6.65s/it]\nepoch_global: 4, step_global: 33, step: 0\nbest_score_avg: 0.79446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.999999995, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nbatch_query: ['计算题: 40.29+76.09 解答: 40.29+76.09=116.38']\n                                                                                                                                                                                                      epoch_global: 4, step_global: 34, step: 1, loss: 1.40625\nbatch_query: ['计算: 64+26= 回答: 64+26=90']\nepoch_4_step:  25%|█████████████████████████████████████▌                                                                                                                | 2/8 [00:27\u003c01:23, 13.96s/itepoch_global: 4, step_global: 35, step: 2, loss: 2.328125\nbatch_query: ['问题: 48.54+9.56 答案: 48.54+9.56=58.1']\nepoch_4_step:  38%|████████████████████████████████████████████████████████▎                                                                                             | 3/8 [00:30\u003c00:46,  9.32s/itepoch_global: 4, step_global: 36, step: 3, loss: 1.90625\nbatch_query: ['计算题: 119.42+26.14 解答: 119.42+26.14=145.56']\nepoch_4_step:  50%|███████████████████████████████████████████████████████████████████████████                                                                           | 4/8 [00:32\u003c00:26,  6.54s/itepoch_global: 4, step_global: 37, step: 4, loss: 1.5859375\nepoch:  24%|█████████████████████████████████████▏                                                                                                                      | 5/21 [05:29\u003c12:57, 48.61s/it]epochs: step:  62%|█████████████████████████████████████████████████████████████████████████████████████████████▊                                                        | 5/8 [00:34\u003c00:15,  5.06s/it]\nepoch_4_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:44\u003c00:00,  5.51s/it]\nbatch_query: ['计算题: 72+55 解答: 72+55=127']███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:42\u003c00:00,  3.30s/it]\nepoch_global: 5, step_global: 41, step: 0, loss: 2.21875                                                                                                                         | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['计算: 54.37+23.56= 回答: 54.37+23.56=77.93']\nbatch_qtext_0: 计算: 54.37+23.56= 回答:\nbatch_qans_0: 54.37+23.56=77.93                                                                                                                                                  | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 54.37+23.56=87.03\n{'rouge-1': 0.4999999950000001, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.4999999950000001, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:06\u003c00:00,  6.04s/it]\nepoch_global: 5, step_global: 41, step: 0\nbest_score_avg: 0.33333\n\ncurrent_mertics: {'rouge-1': 0.4999999950000001, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.4999999950000001, 'bleu': 0.0}\nbatch_query: ['初等数学: 11.66+124.17 解析: 11.66+124.17=135.83']\n                                                                                                                                                                                                      epoch_global: 5, step_global: 42, step: 1, loss: 1.140625\nbatch_query: ['简便运算: 32.31+93.5= 剖析: 32.31+93.5=125.81']                                                                                                           | 2/8 [00:07\u003c00:23,  3.97s/it]\n                                                                                                                                                                                                      epoch_global: 5, step_global: 43, step: 2, loss: 2.03125\nbatch_query: ['计算题: 10+40 解答: 10+40=50']██████████████████████████████▎                                                                                             | 3/8 [00:10\u003c00:17,  3.41s/it]\n                                                                                                                                                                                                      epoch_global: 5, step_global: 44, step: 3, loss: 2.28125\nbatch_query: ['数学题: 26.19+58.61 点拨: 26.19+58.61=84.8']███████████████████████████████████                                                                           | 4/8 [00:13\u003c00:12,  3.09s/it]\n                                                                                                                                                                                                      epoch_global: 5, step_global: 45, step: 4, loss: 1.515625\nepoch:  29%|████████████████████████████████████████████▌                                                                                                               | 6/21 [05:54\u003c10:07, 40.50s/it]epochs:\nepoch_5_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:24\u003c00:00,  3.09s/it]\nbatch_query: ['简便运算: 83.94+43.41= 剖析: 83.94+43.41=127.35']\nepoch_global: 6, step_global: 49, step: 0, loss: 1.6640625\nepoch_6_step:   0%|                                                                                                                                                              | 0/8 [00:00\u003c?, ?it/sbatch_query: ['问: 10+17= 答: 10+17=27']\nbatch_qtext_0: 问: 10+17= 答:                                                                                                                                                    | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 10+17=27\nresponse_0: 10+17=27\n{'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03\u003c00:00,  3.13s/it]\nepoch_global: 6, step_global: 49, step: 0\nbest_score_avg: 0.54446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nbatch_query: ['数学题: 77.73+51.97= 点拨: 77.73+51.97=129.7']\n                                                                                                                                                                                                      epoch_global: 6, step_global: 50, step: 1, loss: 1.3671875\nbatch_query: ['口算: 57+56= 解: 57+56=113']\nepoch_6_step:  25%|█████████████████████████████████████▌                                                                                                                | 2/8 [00:05\u003c00:17,  2.86s/itepoch_global: 6, step_global: 51, step: 2, loss: 3.125\nbatch_query: ['问题: 59+24 答案: 59+24=83']\nepoch_6_step:  38%|████████████████████████████████████████████████████████▎                                                                                             | 3/8 [00:08\u003c00:13,  2.70s/itepoch_global: 6, step_global: 52, step: 3, loss: 2.671875\nbatch_query: ['计算题: 73+64 解答: 73+64=137']\nepoch_6_step:  50%|███████████████████████████████████████████████████████████████████████████                                                                           | 4/8 [00:09\u003c00:09,  2.36s/itepoch_global: 6, step_global: 53, step: 4, loss: 1.90625\nepoch:  33%|████████████████████████████████████████████████████                                                                                                        | 7/21 [06:13\u003c07:49, 33.51s/it]epochs: step:  62%|█████████████████████████████████████████████████████████████████████████████████████████████▊                                                        | 5/8 [00:11\u003c00:06,  2.14s/it]\nepoch_6_step: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:19\u003c00:00,  2.39s/it]\nbatch_query: ['问题: 3+79 答案: 3+79=82']████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:17\u003c00:00,  1.96s/it]\nepoch_global: 7, step_global: 57, step: 0, loss: 3.328125                                                                                                                        | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['计算题: 21.6+4.99 解答: 21.6+4.99=26.59']\nbatch_qtext_0: 计算题: 21.6+4.99 解答:\nbatch_qans_0: 21.6+4.99=26.59                                                                                                                                                    | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 21.6+4.99=26.67\n{'rouge-1': 0.749999995, 'rouge-2': 0.6666666616666668, 'rouge-l': 0.749999995, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05\u003c00:00,  5.84s/it]\nepoch_global: 7, step_global: 57, step: 0\nbest_score_avg: 0.54167\n\ncurrent_mertics: {'rouge-1': 0.749999995, 'rouge-2': 0.6666666616666668, 'rouge-l': 0.749999995, 'bleu': 0.0}\nepoch:  38%|███████████████████████████████████████████████████████████▍                                                                                                | 8/21 [06:21\u003c05:28, 25.27s/it]epochs:\nepoch_7_step:  12%|██████████████████▊                                                                                                                                   | 1/8 [00:07\u003c00:53,  7.62s/it]\nbatch_query: ['简便运算: 32.25+31.24= 剖析: 32.25+31.24=63.49']\nepoch_global: 8, step_global: 58, step: 0, loss: 1.640625\nepoch_8_step:   0%|                                                                                                                                                              | 0/8 [00:00\u003c?, ?it/sbatch_query: ['简便运算: 4+18 剖析: 4+18=22']\nbatch_qtext_0: 简便运算: 4+18 剖析:                                                                                                                                              | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 4+18=22\nresponse_0: 4+18=22\n{'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03\u003c00:00,  3.43s/it]\nepoch_global: 8, step_global: 58, step: 0\nbest_score_avg: 0.54446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nepoch:  43%|██████████████████████████████████████████████████████████████████▊                                                                                         | 9/21 [06:27\u003c03:51, 19.26s/it]epochs:\nepoch_8_step:  12%|██████████████████▊                                                                                                                                   | 1/8 [00:06\u003c00:42,  6.05s/it]\nbatch_query: ['口算: 56.12+87.86= 解: 56.12+87.86=143.98']\nepoch_global: 9, step_global: 59, step: 0, loss: 1.65625                                                                                                                         | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['问: 84.48+26.75= 答: 84.48+26.75=111.23']\nbatch_qtext_0: 问: 84.48+26.75= 答:\nbatch_qans_0: 84.48+26.75=111.23                                                                                                                                                 | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 84.48+26.75=101.13\n{'rouge-1': 0.4999999950000001, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.4999999950000001, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:06\u003c00:00,  6.06s/it]\nepoch_global: 9, step_global: 59, step: 0\nbest_score_avg: 0.33333\n\ncurrent_mertics: {'rouge-1': 0.4999999950000001, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.4999999950000001, 'bleu': 0.0}\nepoch:  48%|█████████████████████████████████████████████████████████████████████████▊                                                                                 | 10/21 [06:35\u003c02:55, 15.95s/it]epochs:\nepoch_9_step:  12%|██████████████████▊                                                                                                                                   | 1/8 [00:08\u003c00:59,  8.55s/it]\nbatch_query: ['计算: 76.94+92.36= 回答: 76.94+92.36=169.3']\nepoch_global: 10, step_global: 60, step: 0, loss: 1.7421875\nepoch_10_step:   0%|                                                                                                                                                             | 0/8 [00:00\u003c?, ?it/sbatch_query: ['初等数学: 91+38= 解析: 91+38=129']\nbatch_qtext_0: 初等数学: 91+38= 解析:                                                                                                                                            | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 91+38=129\nresponse_0: 91+38=129\n{'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03\u003c00:00,  3.50s/it]\nepoch_global: 10, step_global: 60, step: 0\nbest_score_avg: 0.54446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nepoch:  52%|█████████████████████████████████████████████████████████████████████████████████▏                                                                         | 11/21 [06:41\u003c02:08, 12.89s/it]epochs:\nepoch_10_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:05\u003c00:41,  5.93s/it]\nbatch_query: ['问题: 23.29+19.33 答案: 23.29+19.33=42.62']\nepoch_global: 11, step_global: 61, step: 0, loss: 1.921875                                                                                                                       | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['问: 62+93 答: 62+93=155']\nbatch_qtext_0: 问: 62+93 答:\nbatch_qans_0: 62+93=155                                                                                                                                                          | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 62+93=155\n{'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03\u003c00:00,  3.33s/it]\nepoch_global: 11, step_global: 61, step: 0\nbest_score_avg: 0.54446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nepoch:  57%|████████████████████████████████████████████████████████████████████████████████████████▌                                                                  | 12/21 [06:47\u003c01:36, 10.70s/it]epochs:\nepoch_11_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:05\u003c00:39,  5.70s/it]\nbatch_query: ['口算: 22.22+37.01 解: 22.22+37.01=59.23']\nepoch_global: 12, step_global: 62, step: 0, loss: 1.7109375\nepoch_12_step:   0%|                                                                                                                                                             | 0/8 [00:00\u003c?, ?it/sbatch_query: ['口算: 7+24= 解: 7+24=31']\nbatch_qtext_0: 口算: 7+24= 解:                                                                                                                                                   | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 7+24=31\nresponse_0: 7+24=29\n{'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:02\u003c00:00,  2.83s/it]\nepoch_global: 12, step_global: 62, step: 0\nbest_score_avg: 0.0\n\ncurrent_mertics: {'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\nepoch:  62%|███████████████████████████████████████████████████████████████████████████████████████████████▉                                                           | 13/21 [06:52\u003c01:12,  9.03s/it]epochs:\nepoch_12_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:05\u003c00:36,  5.17s/it]\nbatch_query: ['计算题: 48+5= 解答: 48+5=53']\nepoch_global: 13, step_global: 63, step: 0, loss: 2.15625                                                                                                                        | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['简便运算: 5+68= 剖析: 5+68=73']\nbatch_qtext_0: 简便运算: 5+68= 剖析:\nbatch_qans_0: 5+68=73                                                                                                                                                            | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 要简化这个算式,我们可以使用分配律,即:a+b=b+a。因此,5+68=68+5=73。\n\n我们也可以使用长除法,将68除以5,\n{'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:41\u003c00:00, 41.89s/it]\nepoch_global: 13, step_global: 63, step: 0\nbest_score_avg: 0.0\n\ncurrent_mertics: {'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\nepoch:  67%|███████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                   | 14/21 [07:36\u003c02:16, 19.48s/it]epochs:\nepoch_13_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:43\u003c05:05, 43.65s/it]\nbatch_query: ['计算题: 25.31+86.35 解答: 25.31+86.35=111.66']\nepoch_global: 14, step_global: 64, step: 0, loss: 1.1796875\nepoch_14_step:   0%|                                                                                                                                                             | 0/8 [00:00\u003c?, ?it/sbatch_query: ['口算: 4+44= 解: 4+44=48']\nbatch_qtext_0: 口算: 4+44= 解:                                                                                                                                                   | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 4+44=48\nresponse_0: 4+44=48\n{'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:02\u003c00:00,  2.79s/it]\nepoch_global: 14, step_global: 64, step: 0\nbest_score_avg: 0.54446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nepoch:  71%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                            | 15/21 [07:41\u003c01:31, 15.20s/it]epochs:\nepoch_14_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:05\u003c00:36,  5.28s/it]\nbatch_query: ['计算题: 53+79= 解答: 53+79=132']\nepoch_global: 15, step_global: 65, step: 0, loss: 1.9453125                                                                                                                      | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['简便运算: 69+85 剖析: 69+85=154']\nbatch_qtext_0: 简便运算: 69+85 剖析:\nbatch_qans_0: 69+85=154                                                                                                                                                          | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 要简便运算,我们可以采用因数分解和通分的方法。\n\n首先,将两个数进行因数分解:\n\n69=3×33\n85=5×53\n\n然后,将两个\n{'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:53\u003c00:00, 53.75s/it]\nepoch_global: 15, step_global: 65, step: 0\nbest_score_avg: 0.0\n\ncurrent_mertics: {'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\nepoch:  76%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                     | 16/21 [08:37\u003c02:16, 27.36s/it]epochs:\nepoch_15_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:55\u003c06:29, 55.59s/it]\nbatch_query: ['问题: 11+28 答案: 11+28=39']\nepoch_global: 16, step_global: 66, step: 0, loss: 2.609375\nepoch_16_step:   0%|                                                                                                                                                             | 0/8 [00:00\u003c?, ?it/sbatch_query: ['问: 5.65+10.67 答: 5.65+10.67=16.32']\nbatch_qtext_0: 问: 5.65+10.67 答:                                                                                                                                                | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 5.65+10.67=16.32\nresponse_0: 5.65+10.67=16.32\n{'rouge-1': 0.999999995, 'rouge-2': 0.999999995, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:04\u003c00:00,  4.89s/it]\nepoch_global: 16, step_global: 66, step: 0\nbest_score_avg: 0.79446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.999999995, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nepoch:  81%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                             | 17/21 [08:43\u003c01:24, 21.15s/it]epochs:\nepoch_16_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:06\u003c00:47,  6.72s/it]\nbatch_query: ['口算: 20+7= 解: 20+7=27']\nepoch_global: 17, step_global: 67, step: 0, loss: 3.328125                                                                                                                       | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['问题: 92.68+38.52= 答案: 92.68+38.52=131.2']\nbatch_qtext_0: 问题: 92.68+38.52= 答案:\nbatch_qans_0: 92.68+38.52=131.2                                                                                                                                                  | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 92.68+38.52=131.20\n{'rouge-1': 0.749999995, 'rouge-2': 0.6666666616666668, 'rouge-l': 0.749999995, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05\u003c00:00,  5.39s/it]\nepoch_global: 17, step_global: 67, step: 0\nbest_score_avg: 0.54167\n\ncurrent_mertics: {'rouge-1': 0.749999995, 'rouge-2': 0.6666666616666668, 'rouge-l': 0.749999995, 'bleu': 0.0}\nepoch:  86%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                      | 18/21 [08:50\u003c00:50, 16.90s/it]epochs:\nepoch_17_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:06\u003c00:48,  6.99s/it]\nbatch_query: ['简便运算: 54.87+42.4= 剖析: 54.87+42.4=97.27']\nepoch_global: 18, step_global: 68, step: 0, loss: 1.7734375\nepoch_18_step:   0%|                                                                                                                                                             | 0/8 [00:00\u003c?, ?it/sbatch_query: ['计算题: 58.63+36.22= 解答: 58.63+36.22=94.85']\nbatch_qtext_0: 计算题: 58.63+36.22= 解答:                                                                                                                                        | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 58.63+36.22=94.85\nresponse_0: 58.63+36.22=114.85\n{'rouge-1': 0.749999995, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.749999995, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05\u003c00:00,  5.30s/it]\nepoch_global: 18, step_global: 68, step: 0\nbest_score_avg: 0.45833\n\ncurrent_mertics: {'rouge-1': 0.749999995, 'rouge-2': 0.3333333283333334, 'rouge-l': 0.749999995, 'bleu': 0.0}\nepoch:  90%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏              | 19/21 [08:58\u003c00:28, 14.15s/it]epochs:\nepoch_18_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:07\u003c00:54,  7.76s/it]\nbatch_query: ['初等数学: 61.35+15.18 解析: 61.35+15.18=76.53']\nepoch_global: 19, step_global: 69, step: 0, loss: 1.6953125                                                                                                                      | 0/8 [00:00\u003c?, ?it/s]\n                                                                                                                                                                                                      batch_query: ['简便运算: 65+92= 剖析: 65+92=157']\nbatch_qtext_0: 简便运算: 65+92= 剖析:\nbatch_qans_0: 65+92=157                                                                                                                                                          | 0/1 [00:00\u003c?, ?it/s]\nresponse_0: 要简便运算,我们需要知道将要计算的数的位数和个位上的数。在这个例子中,我们已经知道了个位上的数是9,我们需要将这个数转换为十进制\n{'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:26\u003c00:00, 26.37s/it]\nepoch_global: 19, step_global: 69, step: 0\nbest_score_avg: 0.0\n\ncurrent_mertics: {'rouge-1': 0.0, 'rouge-2': 0.0, 'rouge-l': 0.0, 'bleu': 0.0}\nepoch:  95%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌       | 20/21 [09:27\u003c00:18, 18.57s/it]epochs:\nepoch_19_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:28\u003c03:22, 28.86s/it]\nbatch_query: ['问: 86.6+44.32= 答: 86.6+44.32=130.92']\nepoch_global: 20, step_global: 70, step: 0, loss: 1.5546875\nepoch_20_step:   0%|                                                                                                                                                             | 0/8 [00:00\u003c?, ?it/sbatch_query: ['计算: 87+12= 回答: 87+12=99']\nbatch_qtext_0: 计算: 87+12= 回答:                                                                                                                                                | 0/1 [00:00\u003c?, ?it/s]\nbatch_qans_0: 87+12=99\nresponse_0: 87+12=99\n{'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\neval: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:02\u003c00:00,  2.82s/it]\nepoch_global: 20, step_global: 70, step: 0\nbest_score_avg: 0.54446\n\ncurrent_mertics: {'rouge-1': 0.999999995, 'rouge-2': 0.0, 'rouge-l': 0.999999995, 'bleu': 0.1778279410038923}\nepoch: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 21/21 [09:32\u003c00:00, 27.27s/it]\neval: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [06:22\u003c00:00, 382.93s/it]\nepoch_20_step:  12%|██████████████████▋                                                                                                                                  | 1/8 [00:06\u003c00:45,  6.45s/it]\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongzhuo%2Fchatglm-maths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyongzhuo%2Fchatglm-maths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongzhuo%2Fchatglm-maths/lists"}