# NLPCloud

> **Class** in `langchain_community`

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

NLPCloud large language models.

To use, you should have the ``nlpcloud`` python package installed, and the
environment variable ``NLPCLOUD_API_KEY`` set with your API key.

## Signature

```python
NLPCloud()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import NLPCloud
nlpcloud = NLPCloud(model="finetuned-gpt-neox-20b")

## Extends

- `LLM`

## Properties

- `client`
- `model_name`
- `gpu`
- `lang`
- `temperature`
- `max_length`
- `length_no_input`
- `remove_input`
- `remove_end_sequence`
- `bad_words`
- `top_p`
- `top_k`
- `repetition_penalty`
- `num_beams`
- `num_return_sequences`
- `nlpcloud_api_key`
- `model_config`

## Methods

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

---

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