Update README.md
Browse files
README.md
CHANGED
|
@@ -2,5 +2,82 @@
|
|
| 2 |
datasets:
|
| 3 |
- iamtarun/python_code_instructions_18k_alpaca
|
| 4 |
widget:
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
datasets:
|
| 3 |
- iamtarun/python_code_instructions_18k_alpaca
|
| 4 |
widget:
|
| 5 |
+
- text: >
|
| 6 |
+
Below is an instruction that describes a task. Write a response that
|
| 7 |
+
appropriately completes the request.
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
### Instruction:
|
| 11 |
+
|
| 12 |
+
Create a function to calculate the sum of a sequence of integers.
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
### Input:
|
| 16 |
+
|
| 17 |
+
[1, 2, 3, 4, 5]
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
### Output:
|
| 21 |
+
pipeline_tag: text-generation
|
| 22 |
+
tags:
|
| 23 |
+
- code
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Model Details
|
| 27 |
+
this is the finetuned version of GPT2 on a coding dataset
|
| 28 |
+
|
| 29 |
+
### Model Description
|
| 30 |
+
|
| 31 |
+
- **Model type:** text-generation
|
| 32 |
+
- **Finetuned from model [GPT2](https://huggingface.co/gpt2)**
|
| 33 |
+
|
| 34 |
+
### Model Sources [optional]
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
- **Repository:** https://huggingface.co/gpt2
|
| 38 |
+
|
| 39 |
+
## Uses
|
| 40 |
+
```python
|
| 41 |
+
# Use a pipeline as a high-level helper
|
| 42 |
+
from transformers import pipeline
|
| 43 |
+
|
| 44 |
+
pipe = pipeline("text-generation", model="not-lain/PyGPT")
|
| 45 |
+
prompt = """
|
| 46 |
+
Below is an instruction that describes a task. Write a response that
|
| 47 |
+
appropriately completes the request.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
### Instruction:
|
| 51 |
+
|
| 52 |
+
Create a function to calculate the sum of a sequence of integers.
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
### Input:
|
| 56 |
+
|
| 57 |
+
[1, 2, 3, 4, 5]
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Output:
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
pipe(prompt)
|
| 64 |
+
```
|
| 65 |
+
## Bias, Risks, and Limitations
|
| 66 |
+
|
| 67 |
+
model may produce biased ,erroneous and output.
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
it is not advised to use this model as it is just a product of testing a finetuning script
|
| 72 |
+
|
| 73 |
+
## Training Details
|
| 74 |
+
|
| 75 |
+
### Training Data
|
| 76 |
+
|
| 77 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Evaluation
|
| 82 |
+
|
| 83 |
+
please refer to the tensorboard tab for full details
|