summerMC commited on
Commit
29ecdb7
·
verified ·
1 Parent(s): 73aa0ce

Final Release v35: Complete model files and updated README

Browse files
Files changed (1) hide show
  1. README.md +20 -24
README.md CHANGED
@@ -1,30 +1,26 @@
1
- # TRM-Text ISM
 
 
 
 
 
 
 
 
2
 
3
- Custom Hugging Face Transformers model.
4
 
5
- ## Load
6
 
7
- ```python
8
- from transformers import AutoTokenizer, AutoModelForCausalLM
9
- import torch
 
10
 
11
- path = "/content/trm_text_ism_hf"
 
 
12
 
13
- tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
14
- model = AutoModelForCausalLM.from_pretrained(
15
- path,
16
- trust_remote_code=True,
17
- torch_dtype=torch.bfloat16,
18
- device_map="auto",
19
- )
20
  ```
21
-
22
- ## Config
23
-
24
- * dim: 768
25
- * heads: 12
26
- * head_dim: 64
27
- * recurrence_steps: 4
28
- * gate_style: stable
29
- * max_seq_len: 512
30
-
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ base_model: summerMC/TRM-textV2
5
+ tags:
6
+ - text-generation
7
+ - trm-text
8
+ - ism
9
+ ---
10
 
11
+ # TRM-textV2: Recurrent Shared Transformer with ISM
12
 
13
+ This model is a Recurrent Shared Transformer trained with the Inverse Square Mask (ISM) logic. It uses a single Transformer block repeated multiple times (recurrence_steps=4) to simulate depth while maintaining a lower parameter count.
14
 
15
+ ## Key Features
16
+ - **Architecture**: Shared Recurrent Transformer Block (v34).
17
+ - **Inference**: Supports ISM-based prefix-answer masking.
18
+ - **Training**: TinyStories & FineWeb optimized.
19
 
20
+ ## Usage
21
+ ```python
22
+ from transformers import AutoModelForCausalLM, AutoTokenizer
23
 
24
+ model = AutoModelForCausalLM.from_pretrained('summerMC/TRM-textV2', trust_remote_code=True)
25
+ tokenizer = AutoTokenizer.from_pretrained('summerMC/TRM-textV2')
 
 
 
 
 
26
  ```