Update architectures/incoder.txt
Browse files
architectures/incoder.txt
CHANGED
@@ -30,13 +30,4 @@ model = AutoModelWithLMHead.from_pretrained("facebook/incoder-6B")
|
|
30 |
inputs = tokenizer("def hello_world():", return_tensors="pt")
|
31 |
outputs = model(**inputs)
|
32 |
|
33 |
-
```
|
34 |
-
|
35 |
-
Or you can use a `pipeline`:
|
36 |
-
|
37 |
-
```python
|
38 |
-
from transformers import pipeline
|
39 |
-
|
40 |
-
pipe = pipeline("text-generation", model="facebook/incoder-6B")
|
41 |
-
outputs = pipe("def hello_world():")
|
42 |
```
|
|
|
30 |
inputs = tokenizer("def hello_world():", return_tensors="pt")
|
31 |
outputs = model(**inputs)
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
```
|