Allow a bounded GPU memory allocation on shared deployments
Browse filesFiles changed (3)
- README.md+1-1
- SHA256SUMS+2-2
- serve.py+8-1
32 unmodified lines3334353637383932 unmodified linesPYTHON_BIN="$(command -v python)" bash deploy.sh --host 127.0.0.1 --port 8000```The default tensor parallel size is two. The launcher uses a separate temporary directory for each serving process and validates the exact vLLM source hashes before launching. Individual weight files can be checked against SHA256SUMS.## Protocol32 unmodified lines3334353637383932 unmodified linesPYTHON_BIN="$(command -v python)" bash deploy.sh --host 127.0.0.1 --port 8000```The default tensor parallel size is two with a GPU memory utilization of 0.85. Use `--gpu-memory-utilization` to set the vLLM memory fraction on a shared GPU. The launcher uses a separate temporary directory for each serving process and validates the exact vLLM source hashes before launching. Individual weight files can be checked against SHA256SUMS.## Protocol
123456714 unmodified lines22232425262728bce4ed49239fd5638f7fe392cad7ac56a0845c04525ce799bd8632236387b436 .dockerignore56f06bc1d05007c2c80878e46fd40531576bf086566c62de5cbfaeda2f675148 Dockerfilec71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE6b01d498728b3a69fe3e09c5b3b4ccb620043114a65161d4164d148ca68a44bf README.mdc3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041 chat_template.jinjade032e751a82b4907ea8b230266e5e74609c5af0dde8b2722a5652a46142ea9b config.jsonffa94f39113838f7de083cd7cb85614f81845c5325c6aa45865f82fa91d54429 decision_config.json14 unmodified lines27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516 preprocessor_config.jsona60b7a43b4d5698c426338695daf1ce02d6e8c536ce56a980664330246ee88d7 readout.safetensorsca9ed8d6c1e3ab5da193e31b3c0319aa85ca4e445db26b318807eec9f6de4fd5 requirements.txt389a3b9c1f791cb71c28a9aa04ea9f21cf79fea2eb987900a909b2668f73cca7 serve.py89d3a538ed99f8970e4aa92960c494d5f5808a9c7d3f411748134abf52349908 third_party/ATTRIBUTION.mdd7522881de6b8417b997953c9b82d54e1be61952571a163c2fcf77f1e199406d third_party/licenses/NOTICE-upstream.txt9333c90f04b2c10a3f9a0ef41837261231b671970e13b4a886e37fe3b51ad2a1 third_party/licenses/second-source-Apache-2.0.txt123456714 unmodified lines22232425262728bce4ed49239fd5638f7fe392cad7ac56a0845c04525ce799bd8632236387b436 .dockerignore56f06bc1d05007c2c80878e46fd40531576bf086566c62de5cbfaeda2f675148 Dockerfilec71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE683ab3cc2fd74d527b6b28a2cd8bc4be49afa46da6c8f837aff40e722b69e4b0 README.mdc3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041 chat_template.jinjade032e751a82b4907ea8b230266e5e74609c5af0dde8b2722a5652a46142ea9b config.jsonffa94f39113838f7de083cd7cb85614f81845c5325c6aa45865f82fa91d54429 decision_config.json14 unmodified lines27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516 preprocessor_config.jsona60b7a43b4d5698c426338695daf1ce02d6e8c536ce56a980664330246ee88d7 readout.safetensorsca9ed8d6c1e3ab5da193e31b3c0319aa85ca4e445db26b318807eec9f6de4fd5 requirements.txt0c8bd48ef6beed276b784006cd4880b13ee1b936a558906013a957fc1160ce1c serve.py89d3a538ed99f8970e4aa92960c494d5f5808a9c7d3f411748134abf52349908 third_party/ATTRIBUTION.mdd7522881de6b8417b997953c9b82d54e1be61952571a163c2fcf77f1e199406d third_party/licenses/NOTICE-upstream.txt9333c90f04b2c10a3f9a0ef41837261231b671970e13b4a886e37fe3b51ad2a1 third_party/licenses/second-source-Apache-2.0.txt
59 unmodified lines6061626364656667686925 unmodified lines959697989910010159 unmodified linestype=int,default=os.environ.get("TENSOR_PARALLEL_SIZE", 2),)args = parser.parse_args()model = args.model_dir.expanduser().resolve(strict=True)if not 1 <= args.port <= 65535 or args.tensor_parallel_size < 1:parser.error("Invalid port or tensor parallel size")subprocess.run([sys.executable, PACKAGE / "third_party/vllm/install_backport.py"], check=True)25 unmodified lines"--max-num-seqs","8","--gpu-memory-utilization","0.85",]env = os.environ.copy()env.setdefault("VLLM_ALLREDUCE_USE_FLASHINFER", "0")59 unmodified lines606162636465666768697071727374757625 unmodified lines10210310410510610710859 unmodified linestype=int,default=os.environ.get("TENSOR_PARALLEL_SIZE", 2),)parser.add_argument("--gpu-memory-utilization",type=float,default=os.environ.get("GPU_MEMORY_UTILIZATION", "0.85"),)args = parser.parse_args()model = args.model_dir.expanduser().resolve(strict=True)if not 1 <= args.port <= 65535 or args.tensor_parallel_size < 1:parser.error("Invalid port or tensor parallel size")if not 0 < args.gpu_memory_utilization <= 1:parser.error("GPU memory utilization must be greater than zero and at most one")subprocess.run([sys.executable, PACKAGE / "third_party/vllm/install_backport.py"], check=True)25 unmodified lines"--max-num-seqs","8","--gpu-memory-utilization",str(args.gpu_memory_utilization),]env = os.environ.copy()env.setdefault("VLLM_ALLREDUCE_USE_FLASHINFER", "0")
README.md+1-1
SHA256SUMS+2-2
serve.py+8-1