# CTransformers

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/ctransformers/CTransformers)

C Transformers LLM models.

To use, you should have the ``ctransformers`` python package installed.
See https://github.com/marella/ctransformers

## Signature

```python
CTransformers()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import CTransformers

llm = CTransformers(model="/path/to/ggml-gpt-2.bin", model_type="gpt2")

## Extends

- `LLM`

## Properties

- `client`
- `model`
- `model_type`
- `model_file`
- `config`
- `lib`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/ctransformers/CTransformers/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/llms/ctransformers.py#L12)