Shoriful025 commited on
Commit
178f7ed
·
verified ·
1 Parent(s): 28ca0c1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-generation
4
+ - gpt2
5
+ license: gpl-3.0
6
+ datasets:
7
+ - bookcorpus
8
+ metrics:
9
+ - perplexity
10
+ model-index:
11
+ - name: basic-text-generator
12
+ results:
13
+ - task:
14
+ type: text-generation
15
+ dataset:
16
+ name: bookcorpus
17
+ type: bookcorpus
18
+ metrics:
19
+ - name: Perplexity
20
+ type: perplexity
21
+ value: 25.3
22
+ ---
23
+
24
+ # Basic Text Generator
25
+
26
+ ## Overview
27
+
28
+ This is a fine-tuned GPT-2 model for general text generation. It can continue prompts, generate stories, or create coherent paragraphs based on input text. Trained on a diverse corpus for broad applicability.
29
+
30
+ ## Model Architecture
31
+
32
+ - Base Model: GPT-2
33
+ - Layers: 12
34
+ - Hidden Size: 768
35
+ - Attention Heads: 12
36
+ - Context Window: 1024 tokens
37
+
38
+ ## Intended Use
39
+
40
+ Suitable for creative writing, content generation, or prototyping language-based applications.
41
+
42
+ ## Limitations
43
+
44
+ - May generate biased or inappropriate content based on training data.
45
+ - Outputs can be repetitive or nonsensical for long generations.
46
+ - Not optimized for specific domains like code or math.
47
+
48
+ ## Example Code
49
+
50
+ ```python
51
+ from transformers import pipeline
52
+
53
+ generator = pipeline("text-generation", model="user/basic-text-generator")
54
+ result = generator("Once upon a time,", max_length=50)
55
+ print(result[0]['generated_text'])
56
+ # "Once upon a time, in a land far away..."