dong-168
dong-168
> 兄弟,我在复现这个模型的时候,遇到了RuntimeError: shape '[256, 8192, 128]' is invalid for input of size 1048576 请问你遇到了吗? > > File "/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py", line 6298, in multi_head_attention_forward [rank8]: k = k.view(k.shape[0], bsz * num_heads, head_dim).transpose(0,...
> > 兄弟,我在复现这个模型的时候,遇到了RuntimeError: shape '[256, 8192, 128]' is invalid for input of size 1048576 请问你遇到了吗? > > File "/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py", line 6298, in multi_head_attention_forward [rank8]: k = k.view(k.shape[0], bsz * num_heads,...
> 训练脚本发一下 --- ### python代码 | 我找不到minicpm-v4的模型结构定义文件(即包含Loss计算、logits和labels实现的Python代码) MODEL_TYPE = "minicpmv4" MODEL_PATH="model/OpenBMB/MiniCPM-V-4" LOCAL_REPO_PATH = None VAL_DATASET = None TRAIN_TYPE = "lora" lora_rank=8 lora_alpha=32 EPOCH=3 LR=5e-4 grad_step=8 def main(): OUTPUT_DIR = get_FileName()...
> MiniCPM-V-4_5 is supported in swift main branch, please install from source and retry --- Thank you very much. I have completed the fine-tuning of V4.5 as you suggested. However,...
> https://github.com/modelscope/ms-swift/blob/main/examples/models/minicpmv/train.sh > > > can this script run --- I tried the code you provided, but the loss is still zero.
It's also fine to tell me where to find the Python code for the V4 model that includes the implementation of Loss calculation, logits, and labels.
### train.sh 文件(MiniCPM-V-4_5 ✅) CUDA_VISIBLE_DEVICES=0,1,2,3 \ swift sft \ --model OpenBMB/MiniCPM-V-4_5 \ --dataset "train.json" \ --split_dataset_ratio 0 \ --train_type lora \ --torch_dtype float16 \ --num_train_epochs 1 \ --per_device_train_batch_size 1 \...
> 当我的tokens超过max_length,我采用的是直接删除的策略,进一步会随机选择新的数据,但是skip很多次以后还是会报错,这应该如何解决? --- 你是报OOM错吗?
### Qwen3.5-4B **情况1:** 目标框看似接近标签,但有偏移 图像尺寸:800 x 450 公式:真实坐标 = (千位数 / 1000) × 对应边长 eg. 第 1 个目标框 `[580, 388, 670, 738]` `580 / 1000 * 800 = 464` `388...