KeisukeMiyamoto commited on
Commit
410edce
·
verified ·
1 Parent(s): 166c076

Add model card

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - ja
4
+ library_name: transformers
5
+ tags:
6
+ - lambda
7
+ - causal-lm
8
+ - custom-code
9
+ - pytorch
10
+ pipeline_tag: text-generation
11
+ ---
12
+
13
+ # lambda-1-360m-base
14
+
15
+ lambda-1-360m-base is an experimental Japanese language model created with a custom decoder-only Transformer implementation.
16
+
17
+ All training code is publicly available at [KeisukeMiyamoto1324/lambda](https://github.com/KeisukeMiyamoto1324/lambda).
18
+
19
+ ## Model Details
20
+
21
+ | Item | Value |
22
+ |---|---:|
23
+ | Parameters | 359.9M |
24
+ | Architecture | Decoder-only Transformer |
25
+ | Context length | 1,024 tokens |
26
+ | Tokenizer | Byte-level BPE |
27
+ | Vocabulary size | 65,536 |
28
+ | Layers | 32 |
29
+ | Hidden size | 960 |
30
+ | Attention heads | 15 |
31
+ | Key-value heads | 5 |
32
+ | FFN size | 4,096 |
33
+
34
+ ## Training Data
35
+
36
+ The model was pretrained on the Japanese text corpus [`KeisukeMiyamoto/lambda-corpus`](https://huggingface.co/datasets/KeisukeMiyamoto/lambda-corpus).
37
+
38
+ ## Usage
39
+
40
+ ```bash
41
+ git clone https://github.com/KeisukeMiyamoto1324/lambda.git
42
+ cd lambda
43
+ python3 -m venv venv
44
+ source venv/bin/activate
45
+ pip3 install -r requirements.txt
46
+
47
+ python3 src/inference_base/inference_hf.py \
48
+ --model-dir "KeisukeMiyamoto/lambda-1-360m-base" \
49
+ --prompt "人工知能とは" \
50
+ --max-new-tokens 64
51
+ ```
52
+
53
+ ## Limitations
54
+
55
+ This model is not instruction-tuned or safety-aligned. It may generate incorrect, biased, unsafe, or low-quality text.
56
+
57
+ The model was trained primarily on Japanese text and has not been evaluated on standard benchmarks.