Skip to content

Commit 0652389

Browse files
authoredFeb 26, 2025
deprecate TSModelForCausalLM (huggingface#1173)
* deprecate TSModelForCausalLM * add prepare_jit_inputs * remove workflow
1 parent de8c9d7 commit 0652389

File tree

6 files changed

+34
-715
lines changed

6 files changed

+34
-715
lines changed
 

‎.github/workflows/test_generation.yml

-36
This file was deleted.

‎examples/neural_compressor/text-generation/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ limitations under the License.
1818

1919
Based on the script [`run_generation.py`](https://github.com/huggingface/transformers/blob/main/examples/pytorch/text-generation/run_generation.py).
2020

21-
The original generation task only supported the PyTorch eager model. By calling the `TSModelForCausalLM` class, we can now support a TorchScript model for generation tasks.
22-
2321
This example also allows us to apply different quantization approaches (such as dynamic, static, The example applies post-training static quantization on a gptj model).
2422

2523
Example usage:

‎optimum/intel/generation/__init__.py

-16
This file was deleted.

0 commit comments

Comments
 (0)