| language: | |
| - en | |
| library_name: mlx | |
| pipeline_tag: text-generation | |
| license: apache-2.0 | |
| base_model: Tesslate/WEBGEN-4B-Preview | |
| tags: | |
| - web-generation | |
| - html | |
| - css | |
| - tailwind-css | |
| - ui-generation | |
| - web-design | |
| - small-model | |
| - qwen3 | |
| - transformers | |
| - mlx | |
| # WEBGEN-4B-Preview-qx86-hi-mlx | |
| This model [WEBGEN-4B-Preview-qx86-hi-mlx](https://huggingface.co/WEBGEN-4B-Preview-qx86-hi-mlx) was | |
| converted to MLX format from [Tesslate/WEBGEN-4B-Preview](https://huggingface.co/Tesslate/WEBGEN-4B-Preview) | |
| using mlx-lm version **0.27.1**. | |
| ## Use with mlx | |
| ```bash | |
| pip install mlx-lm | |
| ``` | |
| ```python | |
| from mlx_lm import load, generate | |
| model, tokenizer = load("WEBGEN-4B-Preview-qx86-hi-mlx") | |
| prompt = "hello" | |
| if tokenizer.chat_template is not None: | |
| messages = [{"role": "user", "content": prompt}] | |
| prompt = tokenizer.apply_chat_template( | |
| messages, add_generation_prompt=True | |
| ) | |
| response = generate(model, tokenizer, prompt=prompt, verbose=True) | |
| ``` | |