Qwen2 7B Instruct embed base Model Details Qwen2 is a language model series including decoder language models of different model sizes. For each size, we release the base language model and the aligned chat model. It is based on the Transformer architecture with SwiGLU activation, attention QKV bias, group query attention, etc. Additionally, we have an improved tokenizer adaptive to multiple natural languages and codes. Requirements The code of Qwen2 has been in the latest Hugging face transformers and we advise you to install transformers =4.37.0 , or you might encounter the following error: Usage The 'lm head' layer of this model has been removed, which means it can be used for embeddings. It will not perform greatly, as it needs to be further fine tuned, as shown by intfloat/e5 mistral 7b instruct. Inference Note: In my tests it utilizes more than 24GB (RTX 4090), so an A100 or A6000 would be required for inference. Inference (HuggingFace Transformers) Without sentence transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling operation on top of the contextualized word embeddings. How to enab…
We use cookies for essential functionality and analytics. You can accept or reject analytics cookies.Cookie policy