Instructions to use offtoung/tsukuyomi-chan-calm2-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use offtoung/tsukuyomi-chan-calm2-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="offtoung/tsukuyomi-chan-calm2-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("offtoung/tsukuyomi-chan-calm2-7b") model = AutoModelForCausalLM.from_pretrained("offtoung/tsukuyomi-chan-calm2-7b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use offtoung/tsukuyomi-chan-calm2-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "offtoung/tsukuyomi-chan-calm2-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "offtoung/tsukuyomi-chan-calm2-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/offtoung/tsukuyomi-chan-calm2-7b
- SGLang
How to use offtoung/tsukuyomi-chan-calm2-7b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "offtoung/tsukuyomi-chan-calm2-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "offtoung/tsukuyomi-chan-calm2-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "offtoung/tsukuyomi-chan-calm2-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "offtoung/tsukuyomi-chan-calm2-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use offtoung/tsukuyomi-chan-calm2-7b with Docker Model Runner:
docker model run hf.co/offtoung/tsukuyomi-chan-calm2-7b
つくよみちゃんデータセットを用いて calm-2-7b-chat をファインチューニングしたモデルです。下記に記載のライセンスの範囲内でご自由に利用いただけます。
素体として用いたモデル:
calm-2-7b-chat (https://huggingface.co/cyberagent/calm2-7b-chat)
ファインチューニングに用いたデータセット:
つくよみちゃんコーパス (https://tyc.rei-yumesaki.net/material/kaiwa-ai)
利用規約:
下記の規約の範囲内で自由にご利用いただけます。
・つくよみちゃんキャラクターライセンス: https://tyc.rei-yumesaki.net/about/terms
・つくよみちゃん会話 AI 育成計画利用規約: https://tyc.rei-yumesaki.net/material/kaiwa-ai
会話AIの動作画面等のスクリーンショット・キャプチャ動画の投稿、および会話AIから生成された会話を元ネタとする作品を公開する場合は、本モデルの名称あるいは本モデルを含むソフトウェアの名称 (ez-chat-llm) とつくよみちゃんの名前をクレジットすることが必須です。また、会話AIから生成された会話を素材として配布、会話AIから生成された会話を使用して新たな会話AIを作成、あるいは会話AIの改変・再配布を行う場合、つくよみちゃん会話AI育成計画の利用規約 (https://tyc.rei-yumesaki.net/material/kaiwa-ai) に従う必要があります。
- Downloads last month
- 7