Update README.md
Browse files
README.md
CHANGED
@@ -26,14 +26,14 @@ Install the required libraries as follows:
|
|
26 |
Execute the following python code:
|
27 |
```python
|
28 |
tokenizer = AutoTokenizer.from_pretrained(
|
29 |
-
|
30 |
-
|
31 |
)
|
32 |
model = AutoModelForCausalLM.from_pretrained(
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
)
|
38 |
|
39 |
def completion(prompt: str, max_new_tokens: int = 128) -> str:
|
|
|
26 |
Execute the following python code:
|
27 |
```python
|
28 |
tokenizer = AutoTokenizer.from_pretrained(
|
29 |
+
"pfnet/plamo-13b-instruct",
|
30 |
+
trust_remote_code=True,
|
31 |
)
|
32 |
model = AutoModelForCausalLM.from_pretrained(
|
33 |
+
"pfnet/plamo-13b-instruct",
|
34 |
+
trust_remote_code=True,
|
35 |
+
torch_dtype=torch.bfloat16,
|
36 |
+
device_map="auto",
|
37 |
)
|
38 |
|
39 |
def completion(prompt: str, max_new_tokens: int = 128) -> str:
|