Feature Extraction
sentence-transformers
Safetensors
Transformers
English
qwen3
text-embeddings-inference
Instructions to use codefuse-ai/F2LLM-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use codefuse-ai/F2LLM-1.7B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codefuse-ai/F2LLM-1.7B") 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] - Transformers
How to use codefuse-ai/F2LLM-1.7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="codefuse-ai/F2LLM-1.7B")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("codefuse-ai/F2LLM-1.7B") model = AutoModel.from_pretrained("codefuse-ai/F2LLM-1.7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card: Add pipeline tag, library name, paper & code links
#1
by nielsr HF Staff - opened
This PR improves the model card for the F2LLM model by:
- Adding the
pipeline_tag: feature-extractionmetadata, which categorizes the model correctly as an embedding model and improves its discoverability on the Hugging Face Hub. - Specifying
library_name: transformersas the model's usage snippet demonstrates compatibility with the Hugging Face Transformers library, enabling the automated "How to use" code snippet. - Moving the metadata to the top as YAML front matter.
- Adding the paper title as the main heading.
- Providing prominent links to the paper (F2LLM Technical Report: Matching SOTA Embedding Performance with 6 Million Open-Source Data) and the GitHub repository (
https://github.com/codefuse-ai/CodeFuse-Embeddings/tree/main/F2LLM) at the beginning of the model card for improved visibility.
The existing content, including usage examples, evaluation details, training information, and citation, remains largely unchanged to preserve the original author's documentation.
Geralt-Targaryen changed pull request status to merged