Mahiro0698 commited on
Commit
ef69b73
·
verified ·
1 Parent(s): 381fd92

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md CHANGED
@@ -20,3 +20,46 @@ language:
20
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
22
  [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
22
  [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
23
+
24
+
25
+ Hugging Faceプラットフォーム上に公開されているモデル「Mahiro0698/llm-jp-3-13b-it_MN」のページです。このモデルの概要を解説します。
26
+
27
+ モデルの基本情報
28
+ 名前: llm-jp-3-13b-it_MN
29
+ このモデルは約130億個のパラメータを持つ大規模言語モデル(LLM)です。
30
+ 作成者: ユーザー名「Mahiro0698」。
31
+ 用途: 日本語のテキスト処理や自然言語生成に特化しています。
32
+ プラットフォーム: Hugging Faceは、機械学習モデルを共有・利用するためのオープンプラットフォームで、Pythonライブラリ「transformers」を使ってモデルを簡単にロードして使用できます。
33
+
34
+
35
+ このモデルの使い方
36
+ Hugging Faceでホストされているモデルは、以下のような手順で利用可能です。
37
+
38
+ 1. 必要なライブラリをインストール
39
+ pip install transformers
40
+
41
+
42
+ 2. モデルのロード
43
+ Pythonでモデルをロードして使います。
44
+ from transformers import AutoModelForCausalLM, AutoTokenizer
45
+
46
+ # モデルとトークナイザをロード
47
+ model_name = "Mahiro0698/llm-jp-3-13b-it_MN"
48
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
49
+ model = AutoModelForCausalLM.from_pretrained(model_name)
50
+
51
+ # テキスト生成の例
52
+ input_text = "日本の人工知能の未来について"
53
+ inputs = tokenizer(input_text, return_tensors="pt")
54
+ outputs = model.generate(**inputs, max_length=50)
55
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
56
+
57
+
58
+ メモリ要件:
59
+ 13Bモデルは非常に大きいので、モデルをローカルで動かすには高性能なGPUと十分なVRAM(例: 16GB以上)が必要です。
60
+ ローカルで動かせない場合は、Hugging FaceのInference APIやクラウド環境を検討するとよいでしょう。
61
+
62
+ 日本語特化モデル:
63
+ 日本語のテキスト生成、翻訳、要約、質問応答など、多くの日本語関連タスクに適しています。
64
+
65
+