anktechsol commited on
Commit
4075643
·
verified ·
1 Parent(s): fd4ed8c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -9,7 +9,7 @@ metrics:
9
  base_model:
10
  - microsoft/DialoGPT-small
11
  pipeline_tag: text-generation
12
- library_name: diffusers
13
  tags:
14
  - text-generation-inference
15
  ---
@@ -51,3 +51,16 @@ Based on initial testing, the model may exhibit repetitive text generation, espe
51
  ### Recommendations
52
 
53
  Users should be aware of the model's limitations in generating coherent long text and potential biases. It is recommended to experiment with different generation parameters (`max_length`, `no_repeat_ngram_size`, sampling strategies) to improve output quality. For any critical applications, thorough testing and human review of generated content are essential.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  base_model:
10
  - microsoft/DialoGPT-small
11
  pipeline_tag: text-generation
12
+ library_name: transformers
13
  tags:
14
  - text-generation-inference
15
  ---
 
51
  ### Recommendations
52
 
53
  Users should be aware of the model's limitations in generating coherent long text and potential biases. It is recommended to experiment with different generation parameters (`max_length`, `no_repeat_ngram_size`, sampling strategies) to improve output quality. For any critical applications, thorough testing and human review of generated content are essential.
54
+
55
+ ## How to Get Started with the Model
56
+
57
+ Use the code below to get started with the model using the transformers library.
58
+ ```python
59
+ from transformers import pipeline
60
+ generator = pipeline("text-generation", model="anktechsol/ankiGPT-small")
61
+
62
+ prompt = "Write a short story about a day in the life of a student in a bustling Indian city, describing their commute, interactions at school, and a cultural event they attend in the evening."
63
+ generated_text = generator(prompt, max_length=300, num_return_sequences=1)
64
+
65
+ print(generated_text[0]['generated_text'])
66
+ ```