GustavoHCruz commited on
Commit
86c610c
·
verified ·
1 Parent(s): 637b00c

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. config.json +8 -4
  3. gpt2_exon_intron_classification.py +1 -3
README.md CHANGED
@@ -33,7 +33,7 @@ You can use this model through its own custom pipeline:
33
  from transformers import pipeline
34
 
35
  pipe = pipeline(
36
- task="gpt2-exon-introns-classification",
37
  model="GustavoHCruz/ExInGPT",
38
  trust_remote_code=True,
39
  )
 
33
  from transformers import pipeline
34
 
35
  pipe = pipeline(
36
+ task="gpt2-exon-intron-classification",
37
  model="GustavoHCruz/ExInGPT",
38
  trust_remote_code=True,
39
  )
config.json CHANGED
@@ -1,15 +1,19 @@
1
  {
2
  "activation_function": "gelu_new",
3
- "architectures": [
4
- "GPT2LMHeadModel"
5
- ],
6
  "attn_pdrop": 0.1,
7
  "bos_token_id": 50256,
 
 
 
 
 
 
8
  "dtype": "float32",
9
  "embd_pdrop": 0.1,
10
  "eos_token_id": 50256,
11
  "initializer_range": 0.02,
12
- "layer_norm_epsilon": 1e-05,
13
  "model_type": "gpt2",
14
  "n_ctx": 1024,
15
  "n_embd": 768,
 
1
  {
2
  "activation_function": "gelu_new",
3
+ "architectures": ["GPT2LMHeadModel"],
 
 
4
  "attn_pdrop": 0.1,
5
  "bos_token_id": 50256,
6
+ "custom_pipelines": {
7
+ "gpt2-exon-intron-classification": {
8
+ "impl": "gpt2_exon_intron_classification.GPT2ExonIntronClassificationPipeline",
9
+ "pt": ["GPT2LMHeadModel"]
10
+ }
11
+ },
12
  "dtype": "float32",
13
  "embd_pdrop": 0.1,
14
  "eos_token_id": 50256,
15
  "initializer_range": 0.02,
16
+ "layer_norm_epsilon": 1e-5,
17
  "model_type": "gpt2",
18
  "n_ctx": 1024,
19
  "n_embd": 768,
gpt2_exon_intron_classification.py CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
  from typing import Any, Optional
4
 
5
  import torch
@@ -179,4 +177,4 @@ PIPELINE_REGISTRY.register_pipeline(
179
  "gpt2-exon-intron-classification",
180
  pipeline_class=GPT2ExonIntronClassificationPipeline,
181
  pt_model=GPT2LMHeadModel,
182
- )
 
 
 
1
  from typing import Any, Optional
2
 
3
  import torch
 
177
  "gpt2-exon-intron-classification",
178
  pipeline_class=GPT2ExonIntronClassificationPipeline,
179
  pt_model=GPT2LMHeadModel,
180
+ )