Views
No views yet
git clone https://huggingface.co/RS2002/Skip-BARTmodel.py from the official repository).1import torch
2from model import Skip_BART
3
4# Load the model
5model = Skip_BART.from_pretrained("RS2002/Skip-BART")
6
7# Example input
8x_encoder = torch.rand((2, 1024, 512))
9x_decoder = torch.randint(0, 10, (2, 1024, 2))
10encoder_attention_mask = torch.zeros((2, 1024))
11decoder_attention_mask = torch.zeros((2, 1024))
12
13# Forward pass
14output = model(x_encoder, x_decoder, encoder_attention_mask, decoder_attention_mask)
15print(output.size()) # Output: [2, 1024, 1024]1@article{zhao2025automatic,
2 title={Automatic Stage Lighting Control: Is it a Rule-Driven Process or Generative Task?},
3 author={Zhao, Zijian and Jin, Dian and Zhou, Zijing and Zhang, Xiaoyu},
4 journal={arXiv preprint arXiv:2506.01482},
5 year={2025}
6}