初始化项目,由ModelHub XC社区提供模型

Model: Intel/tiny-random-gpt2_ipex_model
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-27 01:58:12 +08:00
commit ead0d911e7
10 changed files with 125 additions and 0 deletions

17
README.md Normal file
View 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)