标签: Python

HuggingFace to Ollama

HuggingFace to Ollama

此报错通常发生在尝试用 ollama run hf.co//: 直接拉取 HuggingFace 上分片(sharded)GGUF 模型的场景。优先排查该仓库是否只包含分片文件,因为 Ollama 注册表拉取尚不支持分片 GGUF,需改为下载到本地目录后用 o

oauth in iframed spaces broken in incognito

oauth in iframed spaces broken in incognito

当 Hugging Face Space 以 iframe 形式嵌入 huggingface.co、而浏览器限制第三方 Cookie 时(典型场景是隐身/无痕窗口),Gradio 的 OAuth 登录会话无法建立,表现为每次登录成功后立即被遗忘、OAuth 反复重启。优先排查会话 Cookie 能否

Cached document embeddings shift to the wrong inputs after an invalid vector is skipped

Cached document embeddings shift to the wrong inputs after an invalid vector is skipped

该问题通常出现在 Dify 自托管环境中批量生成文档嵌入(缓存嵌入)时:当某个输入的向量无效(归一化后为 NaN)而被跳过,缩短后的有效向量列表会错位压缩,导致后续有效向量与错误的输入(文本哈希或文件 ID)配对并写入缓存。排查重点是 CacheEmbedding 中跳过无效向量后“有效向量与原批次