Text Generation
Transformers
Safetensors
English
Korean
Japanese
solar_open2
solar
solar-open2
Mixture of Experts
reap
expert-pruning
compressed-tensors
nvfp4
w4a16
quantized
conversational
8-bit precision
Instructions to use Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4
- SGLang
How to use Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4 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 "Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4" \ --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": "Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4", "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 "Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4" \ --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": "Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4 with Docker Model Runner:
docker model run hf.co/Baekpica/Solar-Open2-148B-A15B-REAP-184E-NVFP4
| { | |
| "all_tensor_payload_sha256_matches": 80427, | |
| "audited_before_atomic_publish": true, | |
| "header_and_prefix_bytes": 10504816, | |
| "input_global_scale_tensors": 0, | |
| "logical_tensor_payload_sha256": "27bf03cfe421a8137f011a3868af1ea95b12c38a2073b2df07058635cba67f0c", | |
| "max_physical_shard_bytes": 9999808584, | |
| "model_audit": { | |
| "audited_before_atomic_publish": true, | |
| "checkpoint": ".", | |
| "elements_by_dtype": { | |
| "BF16": 8669145856, | |
| "F32": 35328, | |
| "F8_E4M3": 8682209280, | |
| "U8": 69457674240 | |
| }, | |
| "finite_positive_weight_global_scales": 26496, | |
| "format": "nvfp4-pack-quantized", | |
| "gate_up_global_scale_bitwise_matches": 8832, | |
| "index_total_size_matches": true, | |
| "input_global_scale_tensors": 0, | |
| "keys_by_dtype": { | |
| "BF16": 891, | |
| "F32": 26544, | |
| "F8_E4M3": 26496, | |
| "U8": 26496 | |
| }, | |
| "n_routed_experts": 184, | |
| "n_shared_experts": 1, | |
| "preserved_payload_sha256_matches": 939, | |
| "preserved_tensor_keys": 939, | |
| "quantized_routed_modules": 26496, | |
| "raw_tensor_bytes": 95478316544, | |
| "raw_tensor_gb": 95.478316544, | |
| "raw_tensor_gib": 88.92111158370972, | |
| "scheme": "NVFP4A16 (W4A16)", | |
| "tensor_keys": 80427, | |
| "weight_zero_point_tensors": 0 | |
| }, | |
| "nonweight_files_preserved": 6, | |
| "output": ".", | |
| "physical_shard_bytes": [ | |
| 9999721088, | |
| 9997516324, | |
| 9964081700, | |
| 9998226852, | |
| 9999808080, | |
| 9997515972, | |
| 9999808584, | |
| 9954241344, | |
| 9999544392, | |
| 5578357024 | |
| ], | |
| "physical_size_cap": 10000000000, | |
| "raw_tensor_bytes": 95478316544, | |
| "raw_tensor_gib": 88.92111158370972, | |
| "rust_safe_open_shards": 10, | |
| "shard_count": 10, | |
| "source": "PTQ staging checkpoint (not published)", | |
| "tensor_keys": 80427, | |
| "total_physical_shard_bytes": 95488821360 | |
| } | |