da-z / mlx-ui Goto Github PK
View Code? Open in Web Editor NEWA simple UI / Web / Frontend for MLX mlx-lm using Streamlit.
License: MIT License
A simple UI / Web / Frontend for MLX mlx-lm using Streamlit.
License: MIT License
In UI:
ValueError: Missing parameters: lm_head.biases lm_head.scales.
Traceback:
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/Users/bradn/mlx-ui/app.py", line 58, in
model, tokenizer = load_model(model_ref)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 212, in wrapper
return cached_func(*args, **kwargs)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 241, in call
return self._get_or_create_cached_value(args, kwargs)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 267, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 321, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "/Users/bradn/mlx-ui/app.py", line 55, in load_model
return load(ref)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/mlx_lm/utils.py", line 232, in load
model = load_model(model_path)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/mlx_lm/utils.py", line 205, in load_model
model.load_weights(list(weights.items()))
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/mlx/nn/layers/base.py", line 151, in load_weights
raise ValueError(f"Missing parameters: {missing}.")
CLI:
Traceback (most recent call last):█████████| 16.1G/16.1G [08:33<00:00, 56.1MB/s]
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 264, in _get_or_create_cached_value
cached_result = cache.read_result(value_key)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_resource_api.py", line 498, in read_result
raise CacheKeyNotFoundError()
streamlit.runtime.caching.cache_errors.CacheKeyNotFoundError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 312, in _handle_cache_miss
cached_result = cache.read_result(value_key)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_resource_api.py", line 498, in read_result
raise CacheKeyNotFoundError()
streamlit.runtime.caching.cache_errors.CacheKeyNotFoundError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/Users/bradn/mlx-ui/app.py", line 58, in
model, tokenizer = load_model(model_ref)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 212, in wrapper
return cached_func(*args, **kwargs)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 241, in call
return self._get_or_create_cached_value(args, kwargs)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 267, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 321, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "/Users/bradn/mlx-ui/app.py", line 55, in load_model
return load(ref)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/mlx_lm/utils.py", line 232, in load
model = load_model(model_path)
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/mlx_lm/utils.py", line 205, in load_model
model.load_weights(list(weights.items()))
File "/Users/bradn/mlx-ui/venv/lib/python3.10/site-packages/mlx/nn/layers/base.py", line 151, in load_weights
raise ValueError(f"Missing parameters: {missing}.")
ValueError: Missing parameters: lm_head.biases lm_head.scales.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.