Feature Extraction
Transformers
Safetensors
sentence-transformers
English
Chinese
c2llm
code
custom_code
Instructions to use codefuse-ai/C2LLM-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codefuse-ai/C2LLM-0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="codefuse-ai/C2LLM-0.5B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("codefuse-ai/C2LLM-0.5B", trust_remote_code=True, device_map="auto") - sentence-transformers
How to use codefuse-ai/C2LLM-0.5B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("codefuse-ai/C2LLM-0.5B", trust_remote_code=True) 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
Download model.safetensors from codefuse-ai/C2LLM-0.5B: direct link, hf CLI and curl.
- Browser
- Download file 995 MB
-
https://huggingface.co/codefuse-ai/C2LLM-0.5B/resolve/main/model.safetensors
- Command line
-
hf download hf://codefuse-ai/C2LLM-0.5B/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/codefuse-ai/C2LLM-0.5B/resolve/main/model.safetensors
995 MB
- Xet hash:
- eaf62eeb938f3890e3231f9eb3a593091bea26ce8165091287e78a0c104404b9
- Size of remote file:
- 995 MB
- SHA256:
- 97aa3034776e942f09edc3df63c462ce6015c9e0a96d09e63070e334a96c484d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.