Feature Extraction
Transformers
Safetensors
sentence-transformers
English
Chinese
c2llm
code
custom_code
Run this model with HF Jobs
Run codefuse-ai/C2LLM-0.5B 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/C2LLM-0.5B. 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/C2LLM-0.5B 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/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
Commit History
-
Add `sentence-transformers` tag for better discoverability
Verified signatureHello! ## Pull Request overview * Add `sentence-transformers` tag for better discoverability ## Details See https://huggingface.co/codefuse-ai/C2LLM-7B/discussions/1. I think this should make it easier for users to find your models. P.s. I've just starred your GitHub repository, nice work on these models! - Tom Aarsenec357dc
-
Update README.md
Verified signaturee0b59fe -
Update README.md
Verified signatured85679f
-
Update README.md
Verified signaturea4d0122 -
Update README.md
Verified signature6b2f6ab
-
Update README.md
Verified signature00888b9 -
Update README.md
Verified signature524e216
-
Update README.md
Verified signature275a7ff -
Update README.md
Verified signature14632b6 -
Update README.md
Verified signatureb9fddd3
-
Update README.md
Verified signaturef08c18b -
Update configuration_c2llm.py
Verified signature8e297a8 -
Update modeling_c2llm.py
Verified signaturebfbbcf3 -
Upload folder using huggingface_hub
Verified signature41e378f -
initial commit
Verified signature1034c40