Text Generation
Transformers
Safetensors
English
qwen3_5_moe
image-text-to-text
llm-agents
world-models
agent-editing
action-judgment
tool-use
editact
conversational
Instructions to use RUC-AIBOX/AEWM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RUC-AIBOX/AEWM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RUC-AIBOX/AEWM") 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("RUC-AIBOX/AEWM") model = AutoModelForMultimodalLM.from_pretrained("RUC-AIBOX/AEWM", 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 RUC-AIBOX/AEWM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RUC-AIBOX/AEWM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RUC-AIBOX/AEWM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RUC-AIBOX/AEWM
- SGLang
How to use RUC-AIBOX/AEWM 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 "RUC-AIBOX/AEWM" \ --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": "RUC-AIBOX/AEWM", "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 "RUC-AIBOX/AEWM" \ --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": "RUC-AIBOX/AEWM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RUC-AIBOX/AEWM with Docker Model Runner:
docker model run hf.co/RUC-AIBOX/AEWM
Add files using upload-large-folder tool
Browse files- model.safetensors-00001-of-00014.safetensors +3 -0
- model.safetensors-00003-of-00014.safetensors +3 -0
- model.safetensors-00004-of-00014.safetensors +3 -0
- model.safetensors-00010-of-00014.safetensors +3 -0
- model.safetensors-00011-of-00014.safetensors +3 -0
- model.safetensors-00012-of-00014.safetensors +3 -0
model.safetensors-00001-of-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:001bacf3d1af171aa0f3dd027804512e773108275039049240624c7f537140bc
|
| 3 |
+
size 5368709816
|
model.safetensors-00003-of-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30d1e57afc9c965f4d263cbe70728fcd37ef2b76015500f443d796adbdba62db
|
| 3 |
+
size 5368709808
|
model.safetensors-00004-of-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cda460e1d824c7681ae57af1262c93e4364284d661ef851721fd29fd3c7f2bf
|
| 3 |
+
size 5368709816
|
model.safetensors-00010-of-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ca0a115d62c7a2a763755ebbb70325d7f2a9008717fe3e2e36fceceeae17cdf
|
| 3 |
+
size 5368710456
|
model.safetensors-00011-of-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc9162267f8628aa2274c89f09b3d19d83c892ea178c0bbcb96cec05ec07a8d3
|
| 3 |
+
size 5368710464
|
model.safetensors-00012-of-00014.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f5b4d6f2eadbea38de7ec4d8da5d39025dbb8c40498a838682c1052ffae24fb
|
| 3 |
+
size 5368710456
|