Run this model with HF Jobs

Run masahiroid/UserRepGen-4B-4bit-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/masahiroid/UserRepGen-4B-4bit-mlx. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
UserRepGen-4B-4bit-mlx / README.ja.md
masahiroid's picture
Add English README/SECURITY/audit report; move Japanese to .ja.md
81b512a verified
|
Raw History Blame Contribute Delete
1.52 kB

UserRepGen-4B-4bit-mlx

English version here (README.md)

microsoft/UserRepGen-4B を Apple Silicon 向けに MLX の 4bit(group size 64)へ量子化した非公式の変換版です。M2 16GB クラスの Mac(GPU に使えるメモリ約 8GB)で動くサイズのモデルを対象にしています。ベースモデルの開発・公開者の皆様に感謝いたします。

  • パラメーター数: 4.54B / ライセンス: mit (ベースモデルと同じ)

使い方

pip install -U mlx-lm
mlx_lm.generate --model masahiroid/UserRepGen-4B-4bit-mlx --prompt "日本の首都はどこですか?" --max-tokens 256
from mlx_lm import load, generate

model, tokenizer = load("masahiroid/UserRepGen-4B-4bit-mlx")
messages = [{"role": "user", "content": "日本の首都はどこですか?"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=256))

セキュリティー

公開前に model-audit-lite で検査しています。

  • ファイル検査(pickle 形式の重み・独自コードの有無、SHA256)
  • 変換前後のチャットテンプレートの一致
  • 日本語の安全性プローブ(変換後モデル)

結果は SECURITY.ja.md と audit/report.ja.md を参照してください。