---
title: distilbart-cnn-6-6
canonical_url: "https://www.modelscope.cn/models/AI-ModelScope/distilbart-cnn-6-6"
md_url: "https://www.modelscope.cn/models/AI-ModelScope/distilbart-cnn-6-6.md"
repository: AI-ModelScope/distilbart-cnn-6-6
last_updated: 2025-07-22
license: apache-2.0
model_type:
  - bart
architectures:
  - BartForConditionalGeneration
base_model:
  - sshleifer/distilbart-cnn-6-6
base_model_relation: finetune
library_name:
  - onnx
  - pytorch
frameworks:
  - pytorch
inference_backends:
  - "deploy_task text/emb"
  - "vllm 0.9.2"
downloads: 2482
stars: 0
---

# distilbart-cnn-6-6

> distilbart-cnn-6-6 - AI-ModelScope 在 ModelScope 开源的模型。https://huggingface.co/sshleifer/distilbart-cnn-6-6 with ONNX weights to be compatible with Transformers.js.

AI-ModelScope/distilbart-cnn-6-6 是 ModelScope 魔搭社区上的机器学习模型，采用 apache-2.0 许可，基于 sshleifer/distilbart-cnn-6-6 构建，可用 deploy_task text/emb、vllm 0.9.2 部署。

- **Repository**: AI-ModelScope/distilbart-cnn-6-6
- **License**: apache-2.0
- **Base model**: sshleifer/distilbart-cnn-6-6
- **Inference backends**: deploy_task text/emb, vllm 0.9.2
- **Downloads**: 2482
- **Stars**: 0
- **Last updated**: 2025-07-22

Source: https://www.modelscope.cn/models/AI-ModelScope/distilbart-cnn-6-6

---

https://huggingface.co/sshleifer/distilbart-cnn-6-6 with ONNX weights to be compatible with Transformers.js.

## Usage (Transformers.js)

If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
```bash
npm i @huggingface/transformers
```

**Example:** Summarization.

```js
import { pipeline } from '@huggingface/transformers';

const generator = await pipeline('summarization', 'Xenova/distilbart-cnn-6-6');
const text = 'The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, ' +
  'and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. ' +
  'During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest ' +
  'man-made structure in the world, a title it held for 41 years until the Chrysler Building in New ' +
  'York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to ' +
  'the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the ' +
  'Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second ' +
  'tallest free-standing structure in France after the Millau Viaduct.';
const output = await generator(text, {
  max_new_tokens: 100,
});
```

Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
