Text Generation
Transformers
ONNX
English
text-generation-inference
ArushBuilds commited on
Commit
63cb224
·
verified ·
1 Parent(s): aa2b4b7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -3
README.md CHANGED
@@ -1,3 +1,4 @@
 
1
  ---
2
  license: apache-2.0
3
  datasets:
@@ -53,8 +54,10 @@ Ensure you have PyTorch and Hugging Face `transformers` installed:
53
  pip install torch transformers
54
 
55
  ```
56
- 2. Inference Code
57
- Python
 
 
58
  import torch
59
  from transformers import AutoTokenizer, AutoModelForCausalLM
60
 
@@ -85,4 +88,37 @@ outputs = model.generate(
85
 
86
  story = tokenizer.decode(outputs[0], skip_special_tokens=True)
87
  print("\n--- Generated Story ---")
88
- print(story)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```markdown
2
  ---
3
  license: apache-2.0
4
  datasets:
 
54
  pip install torch transformers
55
 
56
  ```
57
+
58
+ ### 2. Inference Code
59
+
60
+ ```python
61
  import torch
62
  from transformers import AutoTokenizer, AutoModelForCausalLM
63
 
 
88
 
89
  story = tokenizer.decode(outputs[0], skip_special_tokens=True)
90
  print("\n--- Generated Story ---")
91
+ print(story)
92
+
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Training Setup
98
+
99
+ | Parameter | Configuration |
100
+ | --- | --- |
101
+ | **Hardware** | 1x NVIDIA T4 GPU (Google Colab Free Tier) |
102
+ | **Training Duration** | ~1 hour |
103
+ | **Dataset** | `roneneldan/TinyStories` |
104
+ | **Framework** | PyTorch + Hugging Face Transformers |
105
+
106
+ ---
107
+
108
+ ## Citation & Acknowledgments
109
+
110
+ If you use or reference **Pragya Preview**, please credit the underlying dataset:
111
+
112
+ ```bibtex
113
+ @article{eldan2023tinystories,
114
+ title={TinyStories: How Small Can Language Models Be and Still Speak Coherent English?},
115
+ author={Eldan, Ronen and Li, Yuanzhi},
116
+ journal={arXiv preprint arXiv:2305.07759},
117
+ year={2023}
118
+ }
119
+
120
+ ```
121
+
122
+ ```
123
+
124
+ ```