Text Generation
Transformers
Safetensors
PEFT
fleet
silm
semantic-routing
qwen3
causal-lm
lora
mixture-of-experts
dynamic-experts
conversational
custom_code
Instructions to use marcuscedricridia/Fleet-Semantic-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use marcuscedricridia/Fleet-Semantic-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="marcuscedricridia/Fleet-Semantic-4B", 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("marcuscedricridia/Fleet-Semantic-4B", trust_remote_code=True, device_map="auto") - PEFT
How to use marcuscedricridia/Fleet-Semantic-4B with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use marcuscedricridia/Fleet-Semantic-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "marcuscedricridia/Fleet-Semantic-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "marcuscedricridia/Fleet-Semantic-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/marcuscedricridia/Fleet-Semantic-4B
- SGLang
How to use marcuscedricridia/Fleet-Semantic-4B 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 "marcuscedricridia/Fleet-Semantic-4B" \ --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": "marcuscedricridia/Fleet-Semantic-4B", "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 "marcuscedricridia/Fleet-Semantic-4B" \ --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": "marcuscedricridia/Fleet-Semantic-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use marcuscedricridia/Fleet-Semantic-4B with Docker Model Runner:
docker model run hf.co/marcuscedricridia/Fleet-Semantic-4B
Download native_validation.json from marcuscedricridia/Fleet-Semantic-4B: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/marcuscedricridia/Fleet-Semantic-4B/resolve/main/native_validation.json
- Command line
-
hf download hf://marcuscedricridia/Fleet-Semantic-4B/native_validation.json
-
curl -L -o native_validation.json https://huggingface.co/marcuscedricridia/Fleet-Semantic-4B/resolve/main/native_validation.json
1.22 kB
| { | |
| "ok": true, | |
| "architecture": "FleetForCausalLM", | |
| "generated_text": "We are given that **8 pens cost $12**, and we need to find the cost of **14 pens** at the same rate.\n\n---\n\n### Step 1: Find the cost of one pen\n\nDivide the total cost by the number of pens:\n\n$$\n\\text{Cost per pen} = \\frac{12}{8} = 1.5 \\text{", | |
| "standalone_load": true, | |
| "dynamic_api": { | |
| "initial_experts": [ | |
| "math_reasoning", | |
| "medical_reasoning", | |
| "legal_ops", | |
| "intent", | |
| "function_calling", | |
| "structured" | |
| ], | |
| "initial_semantic_count": 6, | |
| "offloaded_fleet_parameters": 224, | |
| "roundtrip_expert": "structured", | |
| "uninstall_ok": true, | |
| "reinstall_ok": true, | |
| "removed_metadata": { | |
| "description": "Strict JSON/YAML/XML/TOML/CSV structured output", | |
| "license": "apache-2.0", | |
| "name": "structured", | |
| "redistributable": true, | |
| "source_repo": "matsunya/Qwen3_4B_Instruct_2507", | |
| "source_revision": "a8f5fcb3aea52ca34535bf14e4699e60bdc75d45", | |
| "structural_retention": 1.0 | |
| }, | |
| "final_experts": [ | |
| "math_reasoning", | |
| "medical_reasoning", | |
| "legal_ops", | |
| "intent", | |
| "function_calling", | |
| "structured" | |
| ] | |
| } | |
| } |