FlagEmbedding
FlagEmbedding copied to clipboard
protocol_prefix = fs.protocol + "://" if fs.protocol != "file" else ""
执行微调命令:torchrun --nproc_per_node 1 -m FlagEmbedding.reranker.run --output_dir ./FlagEmbedding/reranker/rerank_output --model_name_or_path ./model/BAAIbge-reranker-base --train_data ./examples/reranker/toy_finetune_data.jsonl --learning_rate 6e-5 --fp16 --num_train_epochs 2 --per_device_train_batch_size 1 --gradient_accumulation_steps 4 --dataloader_drop_last True --train_group_size 16 --max_len 512 --weight_decay 0.01 --logging_steps 10 报错:protocol_prefix = fs.protocol + "://" if fs.protocol != "file" else "" TypeError: can only concatenate tuple (not "str") to tuple 项目代码数据没有任何改动,写绝对路径加引号也不行,什么问题?