Text Generation
Transformers
Safetensors
spark2_5
webbrain
tool-calling
lora
conversational
custom_code
Instructions to use webbrain-one/webbrain-compass-tiny-xs-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webbrain-one/webbrain-compass-tiny-xs-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="webbrain-one/webbrain-compass-tiny-xs-v3", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("webbrain-one/webbrain-compass-tiny-xs-v3", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use webbrain-one/webbrain-compass-tiny-xs-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webbrain-one/webbrain-compass-tiny-xs-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webbrain-one/webbrain-compass-tiny-xs-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/webbrain-one/webbrain-compass-tiny-xs-v3
- SGLang
How to use webbrain-one/webbrain-compass-tiny-xs-v3 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 "webbrain-one/webbrain-compass-tiny-xs-v3" \ --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": "webbrain-one/webbrain-compass-tiny-xs-v3", "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 "webbrain-one/webbrain-compass-tiny-xs-v3" \ --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": "webbrain-one/webbrain-compass-tiny-xs-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use webbrain-one/webbrain-compass-tiny-xs-v3 with Docker Model Runner:
docker model run hf.co/webbrain-one/webbrain-compass-tiny-xs-v3
Download adapter/adapter_config.json from webbrain-one/webbrain-compass-tiny-xs-v3: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/webbrain-one/webbrain-compass-tiny-xs-v3/resolve/main/adapter/adapter_config.json
- Command line
-
hf download hf://webbrain-one/webbrain-compass-tiny-xs-v3/adapter/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/webbrain-one/webbrain-compass-tiny-xs-v3/resolve/main/adapter/adapter_config.json
1.24 kB
| { | |
| "alora_invocation_tokens": null, | |
| "alpha_pattern": {}, | |
| "arrow_config": null, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "XHToken/Spark-X2.5-1.7B", | |
| "bias": "none", | |
| "corda_config": null, | |
| "ensure_weight_tying": false, | |
| "eva_config": null, | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 32, | |
| "lora_bias": false, | |
| "lora_dropout": 0.05, | |
| "lora_ga_config": null, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "monteclora_config": null, | |
| "peft_type": "LORA", | |
| "peft_version": "0.20.0", | |
| "qalora_group_size": 16, | |
| "r": 16, | |
| "rank_pattern": {}, | |
| "revision": "14d6e83c13c7add2b62a7c39b2131f4ed1cddcf8", | |
| "target_modules": [ | |
| "g_proj", | |
| "q_k_v_proj", | |
| "gate_proj", | |
| "out_proj", | |
| "up_proj", | |
| "down_proj" | |
| ], | |
| "target_parameters": null, | |
| "task_type": "CAUSAL_LM", | |
| "trainable_token_indices": null, | |
| "use_bdlora": null, | |
| "use_dora": false, | |
| "use_qalora": false, | |
| "use_rslora": false, | |
| "velora_config": null | |
| } | |