18 lines
525 B
Markdown
18 lines
525 B
Markdown
---
|
|
library_name: transformers
|
|
tags: []
|
|
---
|
|
|
|
# Model Card for Model ID
|
|
|
|
This is a tiny random gpt2 model. It was uploaded by IPEXModelForCausalLM.
|
|
|
|
```
|
|
from optimum.intel import IPEXModelForCausalLM
|
|
|
|
model = IPEXModelForCausalLM.from_pretrained("Intel/tiny_random_gpt2")
|
|
model.push_to_hub("Intel/tiny-random-gpt2_ipex_model")
|
|
```
|
|
|
|
This is useful for functional testing (not quality generation, since its weights are random) on [optimum-intel](https://github.com/huggingface/optimum-intel/blob/main/tests/ipex/utils_tests.py)
|