HuggingFaceTB/SmolLM2-135M-Instruct-Q8-mlx

🤗 Hugging Face 来源text-generationapache-2.0135M 参数269 MBsafetensors✓ 1 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo HuggingFaceTB/SmolLM2-135M-Instruct-Q8-mlx ./model-folder
需要做种者 →

HuggingFaceTB/SmolLM2-135M-Instruct-Q8-mlx

The Model HuggingFaceTB/SmolLM2-135M-Instruct-Q8-mlx was converted to MLX format from HuggingFaceTB/SmolLM2-135M-Instruct using mlx-lm version 0.19.2.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("HuggingFaceTB/SmolLM2-135M-Instruct-Q8-mlx")

prompt="hello"

if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)