Text Generation
Transformers
Safetensors
English
qwen3_5_moe
image-text-to-text
agent
deep-research
reasoning
tool-use
long-context
qwen3.5
mixture-of-experts
conversational
Instructions to use cfli/A-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cfli/A-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cfli/A-base") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("cfli/A-base") model = AutoModelForMultimodalLM.from_pretrained("cfli/A-base", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cfli/A-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cfli/A-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cfli/A-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cfli/A-base
- SGLang
How to use cfli/A-base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "cfli/A-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cfli/A-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "cfli/A-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cfli/A-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cfli/A-base with Docker Model Runner:
docker model run hf.co/cfli/A-base
Commit History
-
Add files using upload-large-folder tool
Verified signature600ff57
-
Add files using upload-large-folder tool
Verified signaturee7becd6 -
Add files using upload-large-folder tool
Verified signature4046704 -
Add files using upload-large-folder tool
Verified signatureba3552a -
Add files using upload-large-folder tool
Verified signature69566f6 -
Add files using upload-large-folder tool
Verified signaturea8389c1 -
Add files using upload-large-folder tool
Verified signature70cc1f3 -
Add files using upload-large-folder tool
Verified signatureb17d7d4 -
Add files using upload-large-folder tool
Verified signaturefcd9d3a -
Add files using upload-large-folder tool
Verified signature7bda8f1 -
Add files using upload-large-folder tool
Verified signature2ac28ca -
Add files using upload-large-folder tool
Verified signatured2df60f -
Add files using upload-large-folder tool
Verified signature089d991 -
Add files using upload-large-folder tool
Verified signature1eef665 -
Add files using upload-large-folder tool
Verified signaturedcca019 -
Add files using upload-large-folder tool
Verified signature9bb7a85 -
Add files using upload-large-folder tool
Verified signatureb851626 -
Add files using upload-large-folder tool
Verified signature8ed5a55 -
Add files using upload-large-folder tool
Verified signaturef0b762a -
Add files using upload-large-folder tool
Verified signaturebc44530 -
Add files using upload-large-folder tool
Verified signature887a6b2 -
Add files using upload-large-folder tool
Verified signature4a09990 -
Add files using upload-large-folder tool
Verified signaturedc88d37 -
Add files using upload-large-folder tool
Verified signature80f81cc -
Add files using upload-large-folder tool
Verified signature8d1c968 -
initial commit
Verified signature926040b