Instructions to use dortucx/nogood2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use dortucx/nogood2 with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("dortucx/nogood2") - Notebooks
- Google Colab
- Kaggle
Upload 7 files
Browse files- config.json +35 -0
- fingerprint.pb +3 -0
- keras_metadata.pb +3 -0
- model.weights.h5 +3 -0
- saved_model.pb +3 -0
- variables/variables.data-00000-of-00001 +0 -0
- variables/variables.index +0 -0
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"framework":"tf",
|
| 3 |
+
"activation_function": "gelu_new",
|
| 4 |
+
"attn_pdrop": 0.1,
|
| 5 |
+
"bos_token_id": 50256,
|
| 6 |
+
"embd_pdrop": 0.1,
|
| 7 |
+
"eos_token_id": 50256,
|
| 8 |
+
"initializer_range": 0.02,
|
| 9 |
+
"layer_norm_epsilon": 1e-05,
|
| 10 |
+
"model_type": "gpt2",
|
| 11 |
+
"n_ctx": 1024,
|
| 12 |
+
"n_embd": 768,"n_head": 12,
|
| 13 |
+
"n_inner": null,
|
| 14 |
+
"n_layer": 12,
|
| 15 |
+
"n_positions": 1024,
|
| 16 |
+
"reorder_and_upcast_attn": false,
|
| 17 |
+
"resid_pdrop": 0.1,
|
| 18 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 19 |
+
"scale_attn_weights": true,
|
| 20 |
+
"summary_activation": null,
|
| 21 |
+
"summary_first_dropout": 0.1,
|
| 22 |
+
"summary_proj_to_labels": true,
|
| 23 |
+
"summary_type": "cls_index",
|
| 24 |
+
"summary_use_proj": true,
|
| 25 |
+
"task_specific_params": {
|
| 26 |
+
"text-generation": {
|
| 27 |
+
"do_sample": true,
|
| 28 |
+
"max_length": 50
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"torch_dtype": "float32",
|
| 32 |
+
"transformers_version": "4.41.1",
|
| 33 |
+
"use_cache": true,
|
| 34 |
+
"vocab_size": 50257
|
| 35 |
+
}
|
fingerprint.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e5626b3c40811b8a5800e257d18eb22f529ae886ce18e08dbb8d8a1955f2816
|
| 3 |
+
size 57
|
keras_metadata.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c29d9144236eda916f98c62b379d75b417481fbfd06000a89e4b1edd1ded927c
|
| 3 |
+
size 4458
|
model.weights.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3790dc24518aecdcef9db8f90b37108ffad22059607e2ff9334cc32e6f55235
|
| 3 |
+
size 9952
|
saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1457e2e90a6b29ddef3cee2b0080eeb78818e1118dc497fd81010f042bf42810
|
| 3 |
+
size 28773
|
variables/variables.data-00000-of-00001
ADDED
|
Binary file (1.8 kB). View file
|
|
|
variables/variables.index
ADDED
|
Binary file (382 Bytes). View file
|
|
|