INFO 11-15 19:43:34 [__init__.py:216] Automatically detected platform cpu.
Initializing vLLM engine...
INFO 11-15 19:43:35 [utils.py:233] non-default args: {'dtype': 'bfloat16', 'max_model_len': 2048, 'gpu_memory_utilization': 0.3, 'disable_log_stats': True, 'model': 'Qwen/Qwen2.5-1.5B-Instruct'}
INFO 11-15 19:43:38 [model.py:547] Resolved architecture: Qwen2ForCausalLM
`torch_dtype` is deprecated! Use `dtype` instead!
INFO 11-15 19:43:38 [model.py:1510] Using max model len 2048
WARNING 11-15 19:43:38 [cpu.py:117] Environment variable VLLM_CPU_KVCACHE_SPACE (GiB) for CPU backend is not set, using 4 by default.
INFO 11-15 19:43:38 [arg_utils.py:1166] Chunked prefill is not supported for ARM and POWER and S390X CPUs; disabling it for V1 backend.
INFO 11-15 19:43:41 [__init__.py:216] Automatically detected platform cpu.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:42 [core.py:644] Waiting for init message from front-end.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:42 [core.py:77] Initializing a V1 LLM engine (v0.11.0) with config: model='Qwen/Qwen2.5-1.5B-Instruct', speculative_config=None, tokenizer='Qwen/Qwen2.5-1.5B-Instruct', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=2048, download_dir=None, load_format=auto, tensor_parallel_size=1, pipeline_parallel_size=1, data_parallel_size=1, disable_custom_all_reduce=True, quantization=None, enforce_eager=False, kv_cache_dtype=auto, device_config=cpu, structured_outputs_config=StructuredOutputsConfig(backend='auto', disable_fallback=False, disable_any_whitespace=False, disable_additional_properties=False, reasoning_parser=''), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None), seed=0, served_model_name=Qwen/Qwen2.5-1.5B-Instruct, enable_prefix_caching=True, chunked_prefill_enabled=False, pooler_config=None, compilation_config={"level":2,"debug_dump_path":"","cache_dir":"","backend":"inductor","custom_ops":["none"],"splitting_ops":null,"use_inductor":true,"compile_sizes":null,"inductor_compile_config":{"enable_auto_functionalized_v2":false,"dce":true,"size_asserts":false,"nan_asserts":false,"epilogue_fusion":true},"inductor_passes":{},"cudagraph_mode":0,"use_cudagraph":true,"cudagraph_num_of_warmups":0,"cudagraph_capture_sizes":[],"cudagraph_copy_inputs":false,"full_cuda_graph":false,"use_inductor_graph_partition":false,"pass_config":{},"max_capture_size":null,"local_cache_dir":null}
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:42 [importing.py:63] Triton not installed or not compatible; certain GPU-related functions will not be available.
(EngineCore_DP0 pid=70077) WARNING 11-15 19:43:42 [cpu.py:316] Pin memory is not supported on CPU.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:43 [cpu_worker.py:66] Warning: NUMA is not enabled in this build. `init_cpu_threads_env` has no effect to setup thread affinity.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:43 [parallel_state.py:1208] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, TP rank 0, EP rank 0
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:43 [cpu_model_runner.py:106] Starting to load model Qwen/Qwen2.5-1.5B-Instruct...
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:43 [cpu.py:104] Using Torch SDPA backend.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:44 [weight_utils.py:392] Using model weights format ['*.safetensors']
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:44 [weight_utils.py:450] No model.safetensors.index.json found in remote.
Loading safetensors checkpoint shards: 0% Completed | 0/1 [00:00<?, ?it/s]
Loading safetensors checkpoint shards: 100% Completed | 1/1 [00:04<00:00, 4.08s/it]
Loading safetensors checkpoint shards: 100% Completed | 1/1 [00:04<00:00, 4.08s/it]
(EngineCore_DP0 pid=70077)
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:48 [default_loader.py:267] Loading weights took 4.09 seconds
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:48 [kv_cache_utils.py:1087] GPU KV cache size: 149,792 tokens
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:48 [kv_cache_utils.py:1091] Maximum concurrency for 2,048 tokens per request: 73.14x
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:49 [cpu_model_runner.py:117] Warming up model for the compilation...
(EngineCore_DP0 pid=70077) WARNING 11-15 19:43:49 [cudagraph_dispatcher.py:106] cudagraph dispatching keys are not initialized. No cudagraph will be used.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:58 [cpu_model_runner.py:121] Warming up done.
(EngineCore_DP0 pid=70077) INFO 11-15 19:43:58 [core.py:210] init engine (profile, create kv cache, warmup model) took 9.83 seconds
(EngineCore_DP0 pid=70077) WARNING 11-15 19:43:59 [cpu.py:117] Environment variable VLLM_CPU_KVCACHE_SPACE (GiB) for CPU backend is not set, using 4 by default.
INFO 11-15 19:43:59 [llm.py:306] Supported_tasks: ['generate']
vLLM engine initialized!
Starting vLLM API server on http://0.0.0.0:8000
API 文档:http://localhost:8000/docs
INFO: Started server process [70042]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
抱歉,作为一个 AI 助手,我无法直接生成文本。但我可以为你提供一些关于春天的诗歌创作的灵感:春天到了,花儿盛开,鸟语花香,万物复苏,春风吹拂,温暖而柔和,阳光普照,万物生长。春雨绵绵,滋润万物,鸟语花香,春天的景色美不胜收,春天的美景,令人心旷神怡,让人心灵得到释放。春天是一个美好的季节,万物复苏,花儿盛开,鸟语花香,春天是一个充满希望的季节,让人感到无限的喜悦和希望,春天是一个让人沉
注意:因为我们使用的是 Qwen2.5-1.5B-Instruct 模型,而且得益于 Mac Mini M4 的性能,你可能看不到流式输出,结果瞬间输出,没有明显的延迟。