Instructions to use codefuse-ai/F2LLM-v2-14B-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codefuse-ai/F2LLM-v2-14B-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="codefuse-ai/F2LLM-v2-14B-Preview")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("codefuse-ai/F2LLM-v2-14B-Preview") model = AutoModel.from_pretrained("codefuse-ai/F2LLM-v2-14B-Preview") - sentence-transformers
How to use codefuse-ai/F2LLM-v2-14B-Preview with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codefuse-ai/F2LLM-v2-14B-Preview") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -153,3 +153,17 @@ print(similarity)
|
|
| 153 |
## Intermediate Checkpoints
|
| 154 |
|
| 155 |
To facilitate future research, we release intermediate checkpoints in the `intermediate_checkpoints` branch.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
## Intermediate Checkpoints
|
| 154 |
|
| 155 |
To facilitate future research, we release intermediate checkpoints in the `intermediate_checkpoints` branch.
|
| 156 |
+
|
| 157 |
+
## Citation
|
| 158 |
+
|
| 159 |
+
```
|
| 160 |
+
@misc{f2llm-v2,
|
| 161 |
+
title={F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World},
|
| 162 |
+
author={Ziyin Zhang and Zihan Liao and Hang Yu and Peng Di and Rui Wang},
|
| 163 |
+
year={2026},
|
| 164 |
+
eprint={2603.19223},
|
| 165 |
+
archivePrefix={arXiv},
|
| 166 |
+
primaryClass={cs.CL},
|
| 167 |
+
url={https://arxiv.org/abs/2603.19223},
|
| 168 |
+
}
|
| 169 |
+
```
|