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
Download img/performance.png from codefuse-ai/F2LLM-v2-160M: direct link, hf CLI and curl.
- Browser
- Download file 1.26 MB
-
https://huggingface.co/codefuse-ai/F2LLM-v2-160M/resolve/main/img/performance.png
- Command line
-
hf download hf://codefuse-ai/F2LLM-v2-160M/img/performance.png
-
curl -L -o performance.png https://huggingface.co/codefuse-ai/F2LLM-v2-160M/resolve/main/img/performance.png
1.26 MB

- Xet hash:
- fcf3fbc3a0da90c61df93eebd112152b2b5b953b0e5e0a1fe090a6d3e4bcca62
- Size of remote file:
- 1.26 MB
- SHA256:
- 8cd812ac2ec9e3ecf68b5ab6cf6594aecada48744072119c14d3b1b3f5f08ef4
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.