---
title: gpt-2-ggml
canonical_url: "https://www.modelscope.cn/models/Xorbits/gpt-2-ggml"
md_url: "https://www.modelscope.cn/models/Xorbits/gpt-2-ggml.md"
repository: Xorbits/gpt-2-ggml
last_updated: 2023-10-29
license: mit
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - gpt2
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 77
stars: 0
---

# gpt-2-ggml

> gpt-2-ggml - Xorbits 在 ModelScope 开源的模型。See https://github.com/marella/ctransformers

Xorbits/gpt-2-ggml 是 ModelScope 魔搭社区上的text-generation模型，采用 mit 许可。

- **Repository**: Xorbits/gpt-2-ggml
- **License**: mit
- **Tasks**: text-generation
- **Downloads**: 77
- **Stars**: 0
- **Last updated**: 2023-10-29

Source: https://www.modelscope.cn/models/Xorbits/gpt-2-ggml

---

```sh
pip install ctransformers
```

```py
from ctransformers import AutoModelForCausalLM

llm = AutoModelForCausalLM.from_pretrained('marella/gpt-2-ggml')

print(llm('AI is going to'))
```

See https://github.com/marella/ctransformers
