culturerevolt/Codex-24B-Small-3.2-mlx-4Bit

🤗 Hugging Face 来源apache-2.023.6B 参数47 GBsafetensors✓ 4 个校验和今天更新
一条命令提交

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

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo culturerevolt/Codex-24B-Small-3.2-mlx-4Bit ./model-folder
需要做种者 →

culturerevolt/Codex-24B-Small-3.2-mlx-4Bit

The Model culturerevolt/Codex-24B-Small-3.2-mlx-4Bit was converted to MLX format from Gryphe/Codex-24B-Small-3.2 using mlx-lm version 0.31.2.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("culturerevolt/Codex-24B-Small-3.2-mlx-4Bit")

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)