Adding the flag to docker laucnher.

This commit is contained in:
Nicolas Patry 2023-11-28 15:14:46 +00:00
parent e3c31c9d92
commit 26a271fad5
5 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Metadata-Version: 2.1
Name: UNKNOWN
Version: 0.0.0

View File

@ -0,0 +1,24 @@
pyproject.toml
UNKNOWN.egg-info/PKG-INFO
UNKNOWN.egg-info/SOURCES.txt
UNKNOWN.egg-info/dependency_links.txt
UNKNOWN.egg-info/top_level.txt
models/test_bloom_560m.py
models/test_bloom_560m_sharded.py
models/test_flash_awq.py
models/test_flash_awq_sharded.py
models/test_flash_falcon.py
models/test_flash_llama.py
models/test_flash_llama_gptq.py
models/test_flash_mistral.py
models/test_flash_neox.py
models/test_flash_neox_sharded.py
models/test_flash_santacoder.py
models/test_flash_starcoder.py
models/test_flash_starcoder_gptq.py
models/test_idefics.py
models/test_mpt.py
models/test_mt0_base.py
models/test_neox.py
models/test_neox_sharded.py
models/test_t5_sharded.py

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
models

View File

@ -273,6 +273,7 @@ def launcher(event_loop):
quantize: Optional[str] = None, quantize: Optional[str] = None,
trust_remote_code: bool = False, trust_remote_code: bool = False,
use_flash_attention: bool = True, use_flash_attention: bool = True,
dtype: Optional[str] = None
): ):
port = random.randint(8000, 10_000) port = random.randint(8000, 10_000)
@ -283,6 +284,9 @@ def launcher(event_loop):
if quantize is not None: if quantize is not None:
args.append("--quantize") args.append("--quantize")
args.append(quantize) args.append(quantize)
if dtype is not None:
args.append("--dtype")
args.append(dtype)
if trust_remote_code: if trust_remote_code:
args.append("--trust-remote-code") args.append("--trust-remote-code")