初始化项目,由ModelHub XC社区提供模型
Model: Intel/tiny-random-gpt2_ipex_model Source: Original Platform
This commit is contained in:
17
README.md
Normal file
17
README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
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)
|
||||
Reference in New Issue
Block a user