Lable Mapping not aligned when prefixes are set to be an empty string
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
Reproduce the failure with all prefixes set to empty strings, then trace compute_duplicated_labels() and the activation_storage[n] assignment where the tensor-size error appears. Compare the sizes of idx_map and dummy_labels; the issue is done when empty prefixes produce matching label sizes without the runtime error.
由索引模型根据 Issue 内容生成。
描述
Hi @ericwtodd
I am trying to play with different prefixes. The default one is: prefixes = {"input":"Q:", "output":"A:","instructions":""}. When I change it to empty string prefixes = {"input":"", "output":"","instructions":""}, I get a error saying that:
activation_storage[n] = stack_filtered
RuntimeError: The expanded size of the tensor (54) must match the existing size (53) at non-singleton dimension 2. Target sizes: [40, 40, 54, 128]. Tensor sizes: [40, 40, 53, 128]
I have further checked it and found that this is caused by different label size (the size of idx_map is different from dummy_labels).
When the prefix is made of empty strings, the function compute_duplicated_labels() will an index_map that is of different size of dummy label. I try to debug where went wrong and found it too hard to dive in...
The error only pops up when I have empty strings for prefixes. All other prefixes do not have this problem....
It would be great if you could share some insights on this. I wonder have you experienced similar problems when using empty string prefixes...
- 主要语言
- Python
- 星标
- 200
- 派生
- 47
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ericwtodd/function_vectors 的其他 Issue
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 25/100
查看 ericwtodd/function_vectors 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100