Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LysandreJik committed Feb 14, 2024
1 parent d31f742 commit ce168e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/pytorch/test_pytorch_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_run_clm_config_overrides(self):
tmp_dir = self.get_auto_remove_tmp_dir()
testargs = f"""
run_clm.py
--model_type openai-community/gpt2
--model_type gpt2
--tokenizer_name openai-community/gpt2
--train_file ./tests/fixtures/sample_text.txt
--output_dir {tmp_dir}
Expand Down Expand Up @@ -315,7 +315,7 @@ def test_generation(self):
testargs.append("--fp16")

model_type, model_name = (
"--model_type=openai-community/gpt2",
"--model_type=gpt2",
"--model_name_or_path=sshleifer/tiny-gpt2",
)
with patch.object(sys, "argv", testargs + [model_type, model_name]):
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/models/openai/configuration_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class OpenAIGPTConfig(PretrainedConfig):
>>> configuration = model.config
```"""

model_type = "openai-community/openai-gpt"
model_type = "openai-gpt"
attribute_map = {
"max_position_embeddings": "n_positions",
"hidden_size": "n_embd",
Expand Down

0 comments on commit ce168e1

Please sign in to comment.