This model was converted to MLX format from Rakuten/RakutenAI-7B-chat using mlx-lm version 0.31.0.
Refer to the original model card for more details on the model.
Use with mlx
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/RakutenAI-7B-chat-MLX-8bit")
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)
Inference: M3 Ultra
==========
Hello there, how can I help you today?
==========
Prompt: 38 tokens, 413.037 tokens-per-sec
Generation: 11 tokens, 86.290 tokens-per-sec
Peak memory: 7.917 GB
- Downloads last month
- 17
Model size
7B params
Tensor type
BF16
·
U32 ·
Hardware compatibility
Log In to add your hardware
8-bit
Model tree for mlx-community/RakutenAI-7B-chat-MLX-8bit
Base model
mistralai/Mistral-7B-v0.1 Finetuned
Rakuten/RakutenAI-7B Finetuned
Rakuten/RakutenAI-7B-chat