yasserrmd commited on
Commit
5be2b87
·
verified ·
1 Parent(s): 3a60a59

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +70 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - HuggingFaceFW/fineweb-edu
4
+ ---
5
+
6
+
7
+ # RSCaLM-138M-LLaMA
8
+
9
+ **RSCaLM** (Research Scale Causal Language Model) is an experimental 138M-parameter LLaMA-architecture model trained for **20,000 steps**.
10
+ This run was conducted purely for **experimental and benchmarking purposes** — **no high expectations** for downstream task quality.
11
+
12
+ ---
13
+
14
+ ## 📌 Experiment Summary
15
+
16
+ * **Architecture:** LLaMA-style causal decoder
17
+ * **Parameter Count:** \~138M
18
+ * **Training Steps:** 20,000
19
+ * **Purpose:** Early-stage test run for verifying training pipeline & scaling behavior
20
+ * **Tokenizer:** LLaMA tokenizer
21
+ * **Framework:** PyTorch + Hugging Face Transformers
22
+
23
+ ---
24
+
25
+ ## 📉 Validation Loss Progress
26
+
27
+ | Step | Val Loss |
28
+ | ----- | -------- |
29
+ | 1000 | 5.5968 |
30
+ | 2000 | 4.8513 |
31
+ | 5000 | 4.2105 |
32
+ | 10000 | 3.9603 |
33
+ | 15000 | 3.8497 |
34
+ | 20000 | 3.7891 |
35
+
36
+ Loss shows steady improvement over the limited training period.
37
+
38
+ ---
39
+
40
+ ## ⚠️ Notes
41
+
42
+ * This is an **early prototype** — not tuned for production use.
43
+ * Training stopped after \~32% of planned total steps.
44
+ * Possible repetition loops observed in generation — expected for low-step runs.
45
+ * Intended for research reference, not for deployment in critical tasks.
46
+
47
+ ---
48
+
49
+ ## 🔧 Example Usage
50
+
51
+ ```python
52
+ from transformers import AutoTokenizer, AutoModelForCausalLM
53
+
54
+ model_id = "yasserrmd/RSCaLM-138M-LLaMA"
55
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
56
+ model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
57
+
58
+ prompt = "The sun is"
59
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
60
+
61
+ outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.7)
62
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
63
+ ```
64
+
65
+ ---
66
+
67
+ ## 📜 License
68
+
69
+
70
+