Title | Author | Pages |
---|---|---|
A man from sky | Aayush | 334 |
I know, what miracle is. | Aayush | 3134 |
album001 | Sameer | 134 |
How to feel happiness? | Sameer | 534 |
The secrets of woderland | Sameer | 834 |
An Adventurous Guy | Baa | 1234 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import torch | |
from transformers import GPTJForCausalLM, GPTJConfig | |
# Note: these need the git version of Transformers as of 7/22/2022 | |
from transformers import CodeGenTokenizer, CodeGenForCausalLM | |
from transformers import CODEGEN_PRETRAINED_MODEL_ARCHIVE_LIST | |
parser = argparse.ArgumentParser('Convert SalesForce CodeGen model to GPT-J') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def relative_root_mean_squared_error(true, pred): | |
n = len(true) # update | |
num = np.sum(np.square(true - pred)) / n # update | |
den = np.sum(np.square(pred)) | |
squared_error = num/den | |
rrmse_loss = np.sqrt(squared_error) | |
return rrmse_loss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.figure(figsize=(10, 6)) | |
corr = df.corr() | |
mask = np.zeros_like(corr) | |
mask[np.triu_indices_from(mask)] = True | |
sns.heatmap(corr, mask=mask, square=True, cmap="Blues") |