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)# 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=40) 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
Add files using upload-large-folder tool
Browse files- model-00001-of-00061.safetensors +3 -0
- model-00002-of-00061.safetensors +3 -0
- model-00003-of-00061.safetensors +3 -0
- model-00004-of-00061.safetensors +3 -0
- model-00005-of-00061.safetensors +3 -0
- model-00008-of-00061.safetensors +3 -0
- model-00010-of-00061.safetensors +3 -0
- model-00012-of-00061.safetensors +3 -0
- model-00013-of-00061.safetensors +3 -0
- model-00015-of-00061.safetensors +3 -0
- model-00017-of-00061.safetensors +3 -0
- model-00018-of-00061.safetensors +3 -0
- model-00020-of-00061.safetensors +3 -0
- model-00023-of-00061.safetensors +3 -0
- model-00025-of-00061.safetensors +3 -0
- model-00027-of-00061.safetensors +3 -0
- model-00028-of-00061.safetensors +3 -0
- model-00030-of-00061.safetensors +3 -0
- model-00035-of-00061.safetensors +3 -0
- model-00050-of-00061.safetensors +3 -0
- model-00056-of-00061.safetensors +3 -0
- model-00058-of-00061.safetensors +3 -0
model-00001-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78028e782d183b5973eae2c83f3185395e6c51a7471ac9499019eb59bb684f0c
|
| 3 |
+
size 2625805216
|
model-00002-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5e2cdc957eb535ec06e3bab5187d71a5075b5a9f3ecc915a8c1f60fe37cb098
|
| 3 |
+
size 4958560176
|
model-00003-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2276d15158330a6e990829452ca908bebc8b2a6672f1f8f48daadd25a3a3d60b
|
| 3 |
+
size 4978134472
|
model-00004-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea719f124c6281d922588f41cc93daaa33563dec7c51b2a6d911620f15426bac
|
| 3 |
+
size 4953854616
|
model-00005-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b14dbc4a139650edd9728519d3329a53ccdc85af690ea45a9cc7266c2bbbca68
|
| 3 |
+
size 3398974136
|
model-00008-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:064ca0fd7e312343bfb973d34afbff55769873bd938186f1130b1b5628422cd8
|
| 3 |
+
size 4978134472
|
model-00010-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3784b9a543ce955e5218657420a25e971d90ab79dec81a90565159d5fbc5bd6
|
| 3 |
+
size 3398974136
|
model-00012-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:805701c4b9c428b8a2f836b43ac10ce6a259ecca00999e577ede8f2f35e86aef
|
| 3 |
+
size 4958560176
|
model-00013-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:551bf58025b73c3311d4ae7438bfa9756288b9616edf0f5b1f9f6e277a9ffc8e
|
| 3 |
+
size 4978134480
|
model-00015-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a56dbbe19100d3f67c1a463f3364e0b851f9bfb5219722bdb2a5f5d852af7bae
|
| 3 |
+
size 3398974144
|
model-00017-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10df43e3dc1456937ba9a0a090088e6e66a030b6be6032317add2e9e4610a2fa
|
| 3 |
+
size 4958560184
|
model-00018-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd95a19d39d23830c49580adfcfb7d756b719932ba79b3b8b4439bffd7507bd1
|
| 3 |
+
size 4978134480
|
model-00020-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c2105a0ca2b1656ffdea2a941b4b1ba4e8f14b17ac0d911606fbe409167c354
|
| 3 |
+
size 3398974144
|
model-00023-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc12bcaa61f7cac84c5886e658332293eef63a4c99809c246f01c20c1e59177d
|
| 3 |
+
size 4978134480
|
model-00025-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf1e0c845850b9102fb78395b4f3a9f4fbd071b33be9955bdb6192f3d3efb0eb
|
| 3 |
+
size 3398974144
|
model-00027-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f47bdfae9f5b45202169daf37a1728ba0ba6dad84ca57b0601f880c48246fc0f
|
| 3 |
+
size 4958560184
|
model-00028-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7eea4ad4f91c05a907c37b12df0d91fe1ffd26c4818b4ff4e3feeca2381c195d
|
| 3 |
+
size 4978134480
|
model-00030-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6b746cfdf51975ec384395ea6b64e81f93cca95bf266b0018d817ad7a5e28ab
|
| 3 |
+
size 3398974144
|
model-00035-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fa9fa91af2989a59e4d7b264efd66a793c5924ed24d628df6f5f92037f8d1d8
|
| 3 |
+
size 3398974144
|
model-00050-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac0048035bd9441af0e779bfdcffd360383830af86580da5639947d52118453c
|
| 3 |
+
size 3398974144
|
model-00056-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e1002040f7645284b3416a29cd9a8760ca82bb1d480528289836a0e9dbfccf
|
| 3 |
+
size 1808126696
|
model-00058-of-00061.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b71992db839b002cc45e8319e4d56c7eb47c145cd05284571b7fbfa674919d7
|
| 3 |
+
size 4978134480
|