Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -21,13 +21,6 @@ from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
|
| 21 |
model = GPT2LMHeadModel.from_pretrained("Autsadin/gpt2_instruct")
|
| 22 |
tokenizer = GPT2Tokenizer.from_pretrained("Autsadin/gpt2_instruct")
|
| 23 |
|
| 24 |
-
# Set the seed value for reproducibility
|
| 25 |
-
seed_val = 42
|
| 26 |
-
random.seed(seed_val)
|
| 27 |
-
np.random.seed(seed_val)
|
| 28 |
-
torch.manual_seed(seed_val)
|
| 29 |
-
torch.cuda.manual_seed_all(seed_val)
|
| 30 |
-
|
| 31 |
# Define the template for instruction-based prompts
|
| 32 |
template = '''<s>[INST] <<SYS>>
|
| 33 |
You are a helpful assistant
|
|
|
|
| 21 |
model = GPT2LMHeadModel.from_pretrained("Autsadin/gpt2_instruct")
|
| 22 |
tokenizer = GPT2Tokenizer.from_pretrained("Autsadin/gpt2_instruct")
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Define the template for instruction-based prompts
|
| 25 |
template = '''<s>[INST] <<SYS>>
|
| 26 |
You are a helpful assistant
|