--- tags: - mlx - mlx base_model: mlx-community/Mistral-7B-v0.2-4bit --- # Bdwot/mlxlaw The Model [Bdwot/mlxlaw](https://huggingface.co/Bdwot/mlxlaw) was converted to MLX format from [mlx-community/Mistral-7B-v0.2-4bit](https://huggingface.co/mlx-community/Mistral-7B-v0.2-4bit) using mlx-lm version **0.21.1**. ## Use with mlx ```bash pip install mlx-lm ``` ```python from mlx_lm import load, generate model, tokenizer = load("Bdwot/mlxlaw") 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) ```