Comments (5)
transformers版本是多少?
from bcembedding.
hi @shenlei1020 , transformers 的版本是 4.38.2
from bcembedding.
不超过4.37,建议用4.36
from bcembedding.
Some weights of XLMRobertaForSequenceClassification were not initialized from the model checkpoint at bce-embedding-base_v1 and are newly initialized: ['classifier.out_proj.bias', 'classifier.dense.weight', 'classifier.dense.bias', 'classifier.out_proj.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[8], line 28
26 # get embeddings
27 outputs = embedding_model(**inputs_on_device, return_dict=True)
---> 28 embeddings = outputs.last_hidden_state[:, 0] # cls pooler
29 embeddings = embeddings / embeddings.norm(dim=1, keepdim=True) # normalize
AttributeError: 'SequenceClassifierOutput' object has no attribute 'last_hidden_state'
还是同样的 error
from bcembedding.
hi @shenlei1020 , 可以帮忙看一下吗?已经更换了版本但是依然报错
from bcembedding.
Related Issues (20)
- 提问:如何 benchmark bce reranker (bce-reranker-base_v1) 在对日语的reranker能力 HOT 3
- QAnything和这个模型库的对应关系? HOT 2
- 可以提供一下复现llamaindex结果的数据么, HOT 2
- 测试“Embedding和Reranker集成常用RAG框架”中的样例代码1 HOT 2
- 使用gpu就会崩溃 HOT 4
- 关于模型微调的问题 HOT 1
- 使用 langchain 调用程序报错 HOT 2
- pydantic版本问题 HOT 1
- 下载 tokenizer 时不能指定 auth token HOT 2
- bce-reranker-base_v1原生支持的passage长度问题 HOT 1
- Are there any optimization methods to support the optimized run of this project? HOT 1
- RerankerModel的token数量 HOT 4
- 复现 LlamaIndex RAG评测结果时的一些问题 HOT 1
- Xinference对比手动部署 HOT 4
- 单独部署-用api的方式提供服务 HOT 1
- python3.11报错 HOT 1
- 请问有 C-MTEB (非英文)的测试结果么? HOT 1
- 请问有没有提交到最新的mteb leaderboard的结果对比?
- 请问出现这种情况:Token indices sequence length is longer than the specified maximum sequence length for this model (781 > 512),如何解决? HOT 1
- query只能是一个句子吗?多轮交互下的召回或者排序,BCEEmbedding支持处理呢? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcembedding.