MOSS
MOSS copied to clipboard
An open-source tool-augmented conversational language model from Fudan University
老师还,感谢开源工作!有个问题, finetune_moss.py文件中第178行将tokenizer.eos_token_id重新设置的目的是什么,我没看懂后面的解释 
示例代码 ``` >>> from transformers import AutoTokenizer, AutoModelForCausalLM, StoppingCriteriaList >>> from utils import StopWordsCriteria >>> tokenizer = AutoTokenizer.from_pretrained("fnlp/moss-moon-003-sft-plugin-int4", trust_remote_code=True) >>> stopping_criteria_list = StoppingCriteriaList([StopWordsCriteria(tokenizer.encode("", add_special_tokens=False))]) >>> model = AutoModelForCausalLM.from_pretrained("fnlp/moss-moon-003-sft-plugin-int4", trust_remote_code=True).half().cuda() >>>...
========实例配置======== 核数:16 内存:127 GB 磁盘:49% 9.7G/20G 显卡:NVIDIA A100-SXM4-80GB, 1 输出内容: The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please...
微调运行run.sh报错
按照步骤复制之后微调报错 ValueError: The port number of the rendezvous endpoint 'None:None' must be an integer between 0 and 65536. 请问是哪里出问题了吗?
按照官方的步骤和代码安装运行报错 ``` from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("../models/moss-moon-003-sft-int8", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("../models/moss-moon-003-sft-int8", trust_remote_code=True).half().cuda() meta_instruction = "You are an AI assistant whose name is MOSS.\n- MOSS is a conversational...
python moss_cli_demo.py Fetching 17 files: 100%|██████████████████████████████████████████████████████████████████████████████████| 17/17 [00:00 0: RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at...
root@wyhFire:/mnt/f/MOSS# python3 moss_cli_demo.py 2023-04-27 11:04:26.361098: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA...
Fetching 17 files: 100%|████████████████████████████████████████████████████████████| 17/17 [00:00