我目前正在尝试使用基本的 python - jupyter 项目。
我在 matplotlib 期间遇到以下错误:
ModuleNotFoundError: 没有名为“ matplotlib ”的模块
我尝试在 conda 和 pip 中更新、重新安装 matplotlib,但它仍然无法正常工作。
对每一个建设性的反馈感到高兴
我正在尝试从预训练的“DistilBERT”模型的几个不同层访问输出嵌入。(“distilbert-base-uncased”)
bert_output = model(input_ids, attention_mask=attention_mask)
Run Code Online (Sandbox Code Playgroud)
bert_output 似乎只返回输入标记最后一层的嵌入值。
python nlp pytorch bert-language-model huggingface-transformers