cyberagent / calm2-7b-chat

huggingface.co
Total runs: 5.6K
24-hour runs: 11
7-day runs: 75
30-day runs: 4.9K
Model's Last Updated: February 17 2024
text-generation

Introduction of calm2-7b-chat

Model Details of calm2-7b-chat

CyberAgentLM2-7B-Chat (CALM2-7B-Chat)

Model Description

CyberAgentLM2-Chat is a fine-tuned model of CyberAgentLM2 for dialogue use cases.

Requirements
  • transformers >= 4.34.1
  • accelerate
Usage
import transformers
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer

assert transformers.__version__ >= "4.34.1"

model = AutoModelForCausalLM.from_pretrained("cyberagent/calm2-7b-chat", device_map="auto", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("cyberagent/calm2-7b-chat")
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)

prompt = """USER: AIによって私達の暮らしはどのように変わりますか?
ASSISTANT: """

token_ids = tokenizer.encode(prompt, return_tensors="pt")
output_ids = model.generate(
    input_ids=token_ids.to(model.device),
    max_new_tokens=300,
    do_sample=True,
    temperature=0.8,
    streamer=streamer,
)
Chat Template
USER: {user_message1}
ASSISTANT: {assistant_message1}<|endoftext|>
USER: {user_message2}
ASSISTANT: {assistant_message2}<|endoftext|>
USER: {user_message3}
ASSISTANT: {assistant_message3}<|endoftext|>
Model Details
  • Model size : 7B
  • Context length : 32768
  • Model type : Transformer-based Language Model
  • Language(s) : Japanese, English
  • Developed by : CyberAgent, Inc.
  • License : Apache-2.0
Author

Ryosuke Ishigami

Citations
@article{touvron2023llama,
  title={LLaMA: Open and Efficient Foundation Language Models},
  author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume},
  journal={arXiv preprint arXiv:2302.13971},
  year={2023}
}

Runs of cyberagent calm2-7b-chat on huggingface.co

5.6K
Total runs
11
24-hour runs
40
3-day runs
75
7-day runs
4.9K
30-day runs

More Information About calm2-7b-chat huggingface.co Model

More calm2-7b-chat license Visit here:

https://choosealicense.com/licenses/apache-2.0

calm2-7b-chat huggingface.co

calm2-7b-chat huggingface.co is an AI model on huggingface.co that provides calm2-7b-chat's model effect (), which can be used instantly with this cyberagent calm2-7b-chat model. huggingface.co supports a free trial of the calm2-7b-chat model, and also provides paid use of the calm2-7b-chat. Support call calm2-7b-chat model through api, including Node.js, Python, http.

cyberagent calm2-7b-chat online free

calm2-7b-chat huggingface.co is an online trial and call api platform, which integrates calm2-7b-chat's modeling effects, including api services, and provides a free online trial of calm2-7b-chat, you can try calm2-7b-chat online for free by clicking the link below.

cyberagent calm2-7b-chat online free url in huggingface.co:

https://huggingface.co/cyberagent/calm2-7b-chat

calm2-7b-chat install

calm2-7b-chat is an open source model from GitHub that offers a free installation service, and any user can find calm2-7b-chat on GitHub to install. At the same time, huggingface.co provides the effect of calm2-7b-chat install, users can directly use calm2-7b-chat installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

calm2-7b-chat install url in huggingface.co:

https://huggingface.co/cyberagent/calm2-7b-chat

Url of calm2-7b-chat

calm2-7b-chat huggingface.co Url

Provider of calm2-7b-chat huggingface.co

cyberagent
ORGANIZATIONS

Other API from cyberagent

huggingface.co

Total runs: 806
Run Growth: 475
Growth Rate: 58.93%
Updated:November 02 2023
huggingface.co

Total runs: 22
Run Growth: 10
Growth Rate: 45.45%
Updated:January 09 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 20 2025