File size: 979 Bytes
5b6527d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
language:
  - en
tags:
  - text-generation
  - llama
  - instruct
license: apache-2.0
pipeline_tag: text-generation
---

# LLaDA-8B-Instruct Model

This is the LLaDA-8B-Instruct model deployed as a Hugging Face inference endpoint.

## Model Details

LLaDA-8B-Instruct is a language model designed for instruction-following tasks.

## Usage

This model can be used for text generation tasks. Here's an example:

```python
import requests

API_URL = "https://YOUR-ENDPOINT-URL"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()

output = query({
    "inputs": "Write a short story about a robot learning to paint:",
    "parameters": {
        "max_new_tokens": 250,
        "temperature": 0.7,
        "top_p": 0.95,
        "do_sample": true
    }
})
```

## API Inference Configuration

```yaml
api_inference:
  handler_class: handler.EndpointHandler
```