DNA-R1-4bit / README.md
KYUNGYONG's picture
Upload README.md with huggingface_hub
2bc47f6 verified
|
raw
history blame
942 Bytes
metadata
language:
  - en
  - ko
license: cc-by-nc-4.0
tags:
  - dnotitia
  - nlp
  - llm
  - slm
  - conversation
  - chat
  - reasoning
  - r1
  - mlx
  - mlx-my-repo
base_model: dnotitia/DNA-R1
library_name: transformers
pipeline_tag: text-generation

KYUNGYONG/DNA-R1-4bit

The Model KYUNGYONG/DNA-R1-4bit was converted to MLX format from dnotitia/DNA-R1 using mlx-lm version 0.21.5.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("KYUNGYONG/DNA-R1-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)