Downloads · 30 days
17
25% of all-time downloads
Sido/makellm-ja-char-75m-chat
makellm-ja-char-75m-chat is a text generation model from Sido. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as cc-by-sa-4.0.
🇯🇵 日本語は後半に書いてあります(下へスクロール)。 English version first, Japanese version below.
Downloads · 30 days
17
25% of all-time downloads
All-time downloads
67
Public
Repo size
165 MB
Likes
0
Public
Click a slice to open those files.
.gguf165 MB · 100%
From the Hugging Face model README
🇯🇵 日本語は後半に書いてあります(下へスクロール)。 English version first, Japanese version below.
A from-scratch, character-level Japanese GPT-2 (about 75M parameters), chat-finetuned. Built entirely from scratch — no pretrained Hugging Face models or tokenizers. The model, data preprocessing, training, and GGUF conversion are all hand-written.
⚠️ This is a small, educational model. It produces grammatically natural Japanese small talk and greetings, but do not expect factual accuracy (dates, proper nouns, etc. are often wrong or fabricated). Intended for research, learning, and experimentation.
Tsutomu Uchida (内田勉)
| Field | Value |
|---|---|
| Architecture | GPT-2 style (learned absolute position embeddings, pre-LayerNorm, weight-tied head, exact GELU) |
| Parameters | ~75M |
| Layers / dim / heads | n_layer=10 / n_embd=768 / n_head=12 |
| Context length | 256 |
| Vocabulary | 7,210 (character-level) = 7,207 characters + 3 special tokens |
| Special tokens | `< |
| Format | GGUF (F16) |
| Trained on | AMD Radeon 8060S (gfx1151) + PyTorch ROCm |
Character-level: 1 token = 1 Unicode character. No subword tokenization (BPE/SentencePiece).
All preprocessed at the character level (quality filters: Japanese-character ratio, deduplication, minimum length).
Pretraining (~4.8B characters)
range3/cc100-ja (web text, main source)wikimedia/wikipedia (20231101.ja)globis-university/aozorabunko-clean (public-domain books)Chat finetuning (39,591 conversations)
kunishou/oasst1-89k-ja — multi-turn dialogue (main)kunishou/databricks-dolly-15k-ja — instruction → output<|user|>…<|bot|>…<|end|>, with loss applied only to the response part.This model uses a custom character-level tokenizer, so the chat format (
<|user|>…<|bot|>…<|end|>) must be provided via the includedModelfile. Theollama run hf.co/...direct pull does not work correctly.
If the publisher has pushed to ollama.com, a single command works (no Modelfile needed):
ollama run <owner>/makellm-ja-char-75m-chat "おはよう"
# 1) Download the .gguf and the Modelfile
huggingface-cli download Sido/makellm-ja-char-75m-chat \
makellm-ja-char-75m-chat.f16.gguf Modelfile --local-dir ./makellm
# 2) Register with Ollama and run
cd makellm
ollama create makellm -f Modelfile
ollama run makellm "おはよう"
A Jinja chat template is embedded in the GGUF.
llama-cli -m makellm-ja-char-75m-chat.f16.gguf --jinja -p "おはよう"
# Plain generation:
llama-cli -m makellm-ja-char-75m-chat.f16.gguf -p "むかしむかし"
LM Studio has no separate registry; it uses Hugging Face as its catalog, so this repo works directly:
makellm-ja-char-75m-chat, or "Use this model → LM Studio" on the HF page.lms import makellm-ja-char-75m-chat.f16.gguf (or place it under ~/.lmstudio/models/<publisher>/<model>/).<|user|> as a stop string (<|end|> is already the EOS).tokenizer.ggml.model is llama (SPM). The vocabulary contains only single-character tokens, so no merges fire — it matches the training-time character tokenizer exactly.num_ctx ≤ 256 (the position embeddings have only 256 rows).Released under CC-BY-SA-4.0 (the training data includes CC-BY-SA Wikipedia and databricks-dolly-15k-ja, so ShareAlike is respected). When redistributing or modifying, please share under the same terms and provide attribution.
range3/cc100-ja) — from CommonCrawl. The University of Edinburgh SMT claims no IP on the corpus preparation; the content is subject to the Common Crawl terms of use. Cite: Conneau et al. 2020 (XLM-R) / Wenzek et al. 2020 (CCNet).wikimedia/wikipedia) — © Wikipedia contributors, CC-BY-SA.globis-university/aozorabunko-clean) — public domain.kunishou/oasst1-89k-ja) — from OpenAssistant, Apache-2.0.kunishou/databricks-dolly-15k-ja) — CC-BY-SA-3.0.Whether model weights constitute a derivative work of training data is legally unsettled. This is a conservative (ShareAlike-respecting) choice, not legal advice.
ku-nlp/gpt2-{small,medium,large}-japanese-char are similar Japanese character-level GPT-2 models. This model is an independent from-scratch implementation, additionally chat-finetuned on conversational data.フルスクラッチで実装した文字単位(BPE不使用)の日本語 GPT-2(約75Mパラメータ)をチャット用に微調整したモデルです。 Hugging Face の既製モデルやトークナイザを一切使わず、モデル・データ前処理・学習・GGUF変換まですべて自作しています。
⚠️ 小規模な学習用モデルです。文法的に自然な日本語の雑談・挨拶はできますが、事実の正確性は期待できません(年号・固有名詞などはしばしば誤り/創作します)。研究・学習・実験用途向けです。
内田勉 (Tsutomu Uchida)
| 項目 | 値 |
|---|---|
| アーキテクチャ | GPT-2 型(学習済み絶対位置埋め込み・pre-LayerNorm・重み共有head・厳密GELU) |
| パラメータ数 | 約 75M |
| レイヤ数 / 次元 / ヘッド | n_layer=10 / n_embd=768 / n_head=12 |
| コンテキスト長 | 256 |
| 語彙 | 7,210(文字単位) = 7,207 文字 + 特殊トークン3つ |
| 特殊トークン | `< |
| 配布形式 | GGUF(F16) |
| 学習環境 | AMD Radeon 8060S (gfx1151) + PyTorch ROCm |
文字単位(character-level)なので、1 トークン=1 Unicode 文字です。サブワード(BPE/SentencePiece)を使いません。
すべて文字単位で前処理(日本語比率・重複除去・最小長などの品質フィルタを適用)。
事前学習(約48億字)
range3/cc100-ja(Web テキスト・主軸)wikimedia/wikipedia(20231101.ja)globis-university/aozorabunko-clean(著作権切れ書籍)チャット微調整(39,591 会話)
kunishou/oasst1-89k-ja — 多ターン対話(雑談主力)kunishou/databricks-dolly-15k-ja — 指示応答(instruction→output)<|user|>…<|bot|>…<|end|> 形式に整形し、応答部分のみに loss をかけて学習。このモデルはカスタム文字単位トークナイザのため、チャット書式(
<|user|>…<|bot|>…<|end|>)は付属Modelfileで与える必要があります。ollama run hf.co/...の直接 pull では正しく動作しません。
公開者が ollama.com に push 済みなら、1コマンドで動きます(Modelfile 不要):
ollama run <owner>/makellm-ja-char-75m-chat "おはよう"
# 1) .gguf と Modelfile を取得
huggingface-cli download Sido/makellm-ja-char-75m-chat \
makellm-ja-char-75m-chat.f16.gguf Modelfile --local-dir ./makellm
# 2) Ollama に登録して実行
cd makellm
ollama create makellm -f Modelfile
ollama run makellm "おはよう"
GGUF に Jinja チャットテンプレートを埋め込んであります。
llama-cli -m makellm-ja-char-75m-chat.f16.gguf --jinja -p "おはよう"
# 単純な生成なら:
llama-cli -m makellm-ja-char-75m-chat.f16.gguf -p "むかしむかし"
LM Studio は独自の配布先を持たず Hugging Face をカタログとして使うので、本リポジトリをそのまま利用できます:
makellm-ja-char-75m-chat を検索 → ダウンロード。または HF モデルページの「Use this model → LM Studio」。lms import makellm-ja-char-75m-chat.f16.gguf(または ~/.lmstudio/models/<publisher>/<model>/ に配置)。<|user|> を追加(<|end|> は EOS 設定済み)。tokenizer.ggml.model は llama(SPM)。語彙が1文字トークンのみなのでマージは起きず、学習時の文字トークナイザと一致します。num_ctx は 256 以下にしてください(位置埋め込みが256行のため)。本モデルは CC-BY-SA-4.0 で公開します(学習データに CC-BY-SA の Wikipedia・databricks-dolly-15k-ja を含むため、継承〔ShareAlike〕を尊重)。再配布・改変時は同条件での共有と帰属表示をお願いします。
range3/cc100-ja) — CommonCrawl 由来。エディンバラ大 SMT は整備物への権利を主張せず、内容は Common Crawl の利用規約に従う。引用論文: Conneau et al. 2020 (XLM-R) / Wenzek et al. 2020 (CCNet)。wikimedia/wikipedia) — © Wikipedia 寄稿者, CC-BY-SA。globis-university/aozorabunko-clean) — 著作権切れ(パブリックドメイン相当)。kunishou/oasst1-89k-ja) — OpenAssistant 由来, Apache-2.0。kunishou/databricks-dolly-15k-ja) — CC-BY-SA-3.0。※ 重みが学習データの派生著作物に当たるかは法的に未確定です。本表記は安全側(ShareAlike 尊重)の選択であり、法的助言ではありません。
ku-nlp/gpt2-{small,medium,large}-japanese-char があります。本モデルはそれらとは独立した自作実装で、雑談データでチャット化している点が異なります。