333 Downloads Updated 1 year ago
Name
14 models
calm3-22b-chat:latest
24GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q3_k_s
9.8GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q3_k_m
11GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q3_k_l
12GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q4_0
13GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q4_1
14GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q4_k_s
13GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q4_k_m
14GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q5_0
16GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q5_1
17GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q5_k_s
16GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q5_k_m
16GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q6_k
18GB · 16K context window · Text · 1 year ago
calm3-22b-chat:q8_0
24GB · 16K context window · Text · 1 year ago
https://huggingface.co/cyberagent/calm3-22b-chat
上記モデルカードより。
CyberAgentLM3 is a decoder-only language model pre-trained on 2.0 trillion tokens from scratch.
CyberAgentLM3-Chat is a fine-tuned model specialized for dialogue use cases.
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
model = AutoModelForCausalLM.from_pretrained("cyberagent/calm3-22b-chat", device_map="auto", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("cyberagent/calm3-22b-chat")
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
messages = [
    {"role": "system", "content": "あなたは親切なAIアシスタントです。"},
    {"role": "user", "content": "AIによって私たちの暮らしはどのように変わりますか?"}
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
output_ids = model.generate(input_ids,
                            max_new_tokens=1024,
                            temperature=0.5,
                            streamer=streamer)
CALM3-Chat uses ChatML as the prompt format.
<|im_start|>system
あなたは親切なAIアシスタントです。<|im_end|>
<|im_start|>user
AIによって私たちの暮らしはどのように変わりますか?<|im_end|>
<|im_start|>assistant
@misc{cyberagent-calm3-22b-chat,
      title={cyberagent/calm3-22b-chat},
      url={https://huggingface.co/cyberagent/calm3-22b-chat},
      author={Ryosuke Ishigami},
      year={2024},
}