Update README.md
Browse files
README.md
CHANGED
@@ -35,8 +35,8 @@ model = AutoModel.from_pretrained(checkpoint, trust_remote_code=True).to(device)
|
|
35 |
|
36 |
inputs = tokenizer.encode("def print_hello_world():\tprint('Hello World!')", return_tensors="pt").to(device)
|
37 |
embedding = model(inputs)[0]
|
38 |
-
print(f'Dimension of the embedding: {embedding
|
39 |
-
|
40 |
```
|
41 |
|
42 |
### BibTeX entry and citation info
|
|
|
35 |
|
36 |
inputs = tokenizer.encode("def print_hello_world():\tprint('Hello World!')", return_tensors="pt").to(device)
|
37 |
embedding = model(inputs)[0]
|
38 |
+
print(f'Dimension of the embedding: {embedding[0].size()}')
|
39 |
+
# Dimension of the embedding: torch.Size([13, 1024])
|
40 |
```
|
41 |
|
42 |
### BibTeX entry and citation info
|