> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.models.reward.skywork model

<a id="camel.models.reward.skywork_model" />

<a id="camel.models.reward.skywork_model.SkyworkRewardModel" />

## SkyworkRewardModel

```python theme={"system"}
class SkyworkRewardModel(BaseRewardModel):
```

Reward model based on the transformers, it will download the model
from huggingface.

**Parameters:**

* **model\_type** (Union\[ModelType, str]): Model for which a backend is created.
* **api\_key** (Optional\[str], optional): Not used. (default: :obj:`None`)
* **url** (Optional\[str], optional): Not used. (default: :obj:`None`)
* **device\_map** (Optional\[str], optional): choose the device map. (default: :obj:`auto`)
* **attn\_implementation** (Optional\[str], optional): choose the attention implementation. (default: :obj:`flash_attention_2`)
* **offload\_folder** (Optional\[str], optional): choose the offload folder. (default: :obj:`offload`)

<a id="camel.models.reward.skywork_model.SkyworkRewardModel.__init__" />

### **init**

```python theme={"system"}
def __init__(
    self,
    model_type: Union[ModelType, str],
    api_key: Optional[str] = None,
    url: Optional[str] = None,
    device_map: Optional[str] = 'auto',
    attn_implementation: Optional[str] = 'flash_attention_2',
    offload_folder: Optional[str] = 'offload'
):
```

<a id="camel.models.reward.skywork_model.SkyworkRewardModel.evaluate" />

### evaluate

```python theme={"system"}
def evaluate(self, messages: List[Dict[str, str]]):
```

Evaluate the messages using the Skywork model.

**Parameters:**

* **messages** (List\[Dict\[str, str]]): A list of messages.

**Returns:**

ChatCompletion: A ChatCompletion object with the scores.

<a id="camel.models.reward.skywork_model.SkyworkRewardModel.get_scores_types" />

### get\_scores\_types

```python theme={"system"}
def get_scores_types(self):
```

**Returns:**

List\[str]: list of scores types
