codefuse-ai / F2LLM-v2-0.6B

huggingface.co
Total runs: 12.9K
24-hour runs: -927
7-day runs: -1.3K
30-day runs: -9.2K
Model's Last Updated: September 03 2026
feature-extraction

Introduction of F2LLM-v2-0.6B

Model Details of F2LLM-v2-0.6B

F2LLM-v2-0.6B

F2LLM-v2 is a family of general-purpose, multilingual embedding models in 8 distinct sizes ranging from 80M to 14B. Trained on a curated composite of 60 million publicly available high-quality data, F2LLM-v2 supports more than 200 languages, with a particular emphasis on previously underserved mid- and low-resource languages.

Usage
With Sentence Transformers

To encode text with the Sentence Transformers library:

from sentence_transformers import SentenceTransformer
model = SentenceTransformer("codefuse-ai/F2LLM-v2-0.6B", device="cuda:0", model_kwargs={"torch_dtype": "bfloat16"})
# Some sample query and documents
query = "What is F2LLM used for?"
documents = [
    'We present F2LLM, a family of fully open embedding LLMs that achieve a strong balance between model size, training data, and embedding performance.',
    'F2LLM is a model for computing text embeddings that can be used for various NLP tasks such as information retrieval, semantic search, and text classification.',
    'F2LLM 是 CodeFuse 开源的系列嵌入模型。',
    'F2LLM — это модель вычисления встраивания текста, которую можно использовать для различных задач НЛП, таких как поиск информации, семантический поиск и классификация текста.'
]
# Encode the query and documents separately. The encode_query method uses the query prompt
query_embedding = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embedding.shape, document_embeddings.shape)
# (1024,) (4, 1024)
# Compute cosine similarity between the query and documents
similarity = model.similarity(query_embedding, document_embeddings)
print(similarity)
# tensor([[0.5978, 0.8532, 0.7953, 0.8431]])
With Transformers

Or directly with the Transformers library:

from transformers import AutoModel, AutoTokenizer
import torch
import torch.nn.functional as F
model_path = "codefuse-ai/F2LLM-v2-0.6B"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModel.from_pretrained(model_path, torch_dtype=torch.bfloat16, device_map={'': 0})
query = "What is F2LLM used for?"
query_prompt = "Instruct: Given a question, retrieve passages that can help answer the question.\nQuery: "
documents = [
    'We present F2LLM, a family of fully open embedding LLMs that achieve a strong balance between model size, training data, and embedding performance.',
    'F2LLM is a model for computing text embeddings that can be used for various NLP tasks such as information retrieval, semantic search, and text classification.',
    'F2LLM 是 CodeFuse 开源的系列嵌入模型。',
    'F2LLM — это модель вычисления встраивания текста, которую можно использовать для различных задач НЛП, таких как поиск информации, семантический поиск и классификация текста.'
]
def encode(sentences):
    batch_size = len(sentences)
    # the tokenizer will automatically add eos token
    tokenized_inputs = tokenizer(sentences, padding=True, return_tensors='pt').to(model.device)
    last_hidden_state = model(**tokenized_inputs).last_hidden_state
    eos_positions = tokenized_inputs.attention_mask.sum(dim=1) - 1
    embeddings = last_hidden_state[torch.arange(batch_size, device=model.device), eos_positions]
    embeddings = F.normalize(embeddings, p=2, dim=1)
    return embeddings
# Encode the query and documents
query_embedding = encode([query_prompt + query])
document_embeddings = encode(documents)
print(query_embedding.shape, document_embeddings.shape)
# torch.Size([1, 1024]) torch.Size([4, 1024])
# Compute cosine similarity between the query and documents
similarity = query_embedding @ document_embeddings.T
print(similarity)
# tensor([[0.5938, 0.8555, 0.7969, 0.8438]], device='cuda:0',
#        dtype=torch.bfloat16, grad_fn=<MmBackward0>)

Runs of codefuse-ai F2LLM-v2-0.6B on huggingface.co

12.9K
Total runs
-927
24-hour runs
-506
3-day runs
-1.3K
7-day runs
-9.2K
30-day runs

More Information About F2LLM-v2-0.6B huggingface.co Model

More F2LLM-v2-0.6B license Visit here:

https://choosealicense.com/licenses/apache-2.0

F2LLM-v2-0.6B huggingface.co

F2LLM-v2-0.6B huggingface.co is an AI model on huggingface.co that provides F2LLM-v2-0.6B's model effect (), which can be used instantly with this codefuse-ai F2LLM-v2-0.6B model. huggingface.co supports a free trial of the F2LLM-v2-0.6B model, and also provides paid use of the F2LLM-v2-0.6B. Support call F2LLM-v2-0.6B model through api, including Node.js, Python, http.

codefuse-ai F2LLM-v2-0.6B online free

F2LLM-v2-0.6B huggingface.co is an online trial and call api platform, which integrates F2LLM-v2-0.6B's modeling effects, including api services, and provides a free online trial of F2LLM-v2-0.6B, you can try F2LLM-v2-0.6B online for free by clicking the link below.

codefuse-ai F2LLM-v2-0.6B online free url in huggingface.co:

https://huggingface.co/codefuse-ai/F2LLM-v2-0.6B

F2LLM-v2-0.6B install

F2LLM-v2-0.6B is an open source model from GitHub that offers a free installation service, and any user can find F2LLM-v2-0.6B on GitHub to install. At the same time, huggingface.co provides the effect of F2LLM-v2-0.6B install, users can directly use F2LLM-v2-0.6B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

F2LLM-v2-0.6B install url in huggingface.co:

https://huggingface.co/codefuse-ai/F2LLM-v2-0.6B

Url of F2LLM-v2-0.6B

Provider of F2LLM-v2-0.6B huggingface.co

codefuse-ai
ORGANIZATIONS

Other API from codefuse-ai

huggingface.co

Total runs: 1.2K
Run Growth: 347
Growth Rate: 28.75%
Updated:December 21 2025
huggingface.co

Total runs: 316
Run Growth: -43
Growth Rate: -13.61%
Updated:January 21 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 03 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 03 2026