Run this model with HF Jobs
Run codefuse-ai/F2LLM-v2-160M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/codefuse-ai/F2LLM-v2-160M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/codefuse-ai/F2LLM-v2-160M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use codefuse-ai/F2LLM-v2-160M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codefuse-ai/F2LLM-v2-160M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="codefuse-ai/F2LLM-v2-160M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("codefuse-ai/F2LLM-v2-160M") model = AutoModel.from_pretrained("codefuse-ai/F2LLM-v2-160M", device_map="auto") - sentence-transformers
How to use codefuse-ai/F2LLM-v2-160M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codefuse-ai/F2LLM-v2-160M") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files184 unmodified lines185186187188184 unmodified lines## Intermediate CheckpointsTo facilitate future research, we release intermediate checkpoints in the `intermediate_checkpoints` branch.184 unmodified lines185186187188189190191192193194195196197198199200201202184 unmodified lines## Intermediate CheckpointsTo facilitate future research, we release intermediate checkpoints in the `intermediate_checkpoints` branch.## Citation```@misc{f2llm-v2,title={F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World},author={Ziyin Zhang and Zihan Liao and Hang Yu and Peng Di and Rui Wang},year={2026},eprint={2603.19223},archivePrefix={arXiv},primaryClass={cs.CL},url={https://arxiv.org/abs/2603.19223},}```
README.md+15-1