---
title: gpt-2-ggml
canonical_url: "https://www.modelscope.ai/models/Xorbits/gpt-2-ggml"
md_url: "https://www.modelscope.ai/models/Xorbits/gpt-2-ggml.md"
repository: Xorbits/gpt-2-ggml
last_updated: 2025-12-03
license: mit
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - gpt2
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 125
stars: 0
---

# gpt-2-ggml

> gpt-2-ggml - An open-source model by Xorbits on ModelScope. See https://github.com/marella/ctransformers

Xorbits/gpt-2-ggml is a text-generation model on ModelScope. licensed under mit.

- **Repository**: Xorbits/gpt-2-ggml
- **License**: mit
- **Tasks**: text-generation
- **Downloads**: 125
- **Stars**: 0
- **Last updated**: 2025-12-03

Source: https://www.modelscope.ai/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
