mlc-ai / mlc-llm

Universal LLM Deployment Engine with ML Compilation
https://llm.mlc.ai/
Apache License 2.0
19.09k stars 1.56k forks source link

[Feature Request] BlueLM Support #1294

Open Vinaysukhesh98 opened 11 months ago

Vinaysukhesh98 commented 11 months ago

🐛 Bug: TRying to compile with different models

python3 -m mlc_llm.build --target android --max-seq-len 768 --model ./dist/models/BlueLM-7B-Chat --quantization q4f16_1 Traceback (most recent call last): File "/home/mbu-lap/miniconda3/envs/tvm-build-venv/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/mbu-lap/miniconda3/envs/tvm-build-venv/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/build.py", line 47, in main() File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/build.py", line 41, in main parsed_args = core._parse_args(parsed_args) # pylint: disable=protected-access File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/core.py", line 325, in _parse_args parsed = _setup_model_path(parsed) File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/core.py", line 368, in _setup_model_path validate_config(args.model_path) File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/core.py", line 411, in validate_config assert ( AssertionError: Model type BlueLM not supported.

To Reproduce

Additional context

python3 -m mlc_llm.build --target android --max-seq-len 768 --model ./dist/models/BlueLM-7B-Chat --quantization q4f16_1 Traceback (most recent call last): File "/home/mbu-lap/miniconda3/envs/tvm-build-venv/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/mbu-lap/miniconda3/envs/tvm-build-venv/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/build.py", line 47, in main() File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/build.py", line 41, in main parsed_args = core._parse_args(parsed_args) # pylint: disable=protected-access File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/core.py", line 325, in _parse_args parsed = _setup_model_path(parsed) File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/core.py", line 368, in _setup_model_path validate_config(args.model_path) File "/home/mbu-lap/Documents/Vinay/Mob/mlc-llm/mlc_llm/core.py", line 411, in validate_config assert ( AssertionError: Model type BlueLM not supported.

Hzfengsy commented 11 months ago

@Vinaysukhesh98 Thanks for the report. It's not a bug but we do not support the BlueLM model. Please follow the tutorial to add support, or open a model request issue and wait for the community to support it, if someone volunteers