Transformers
PyTorch
code
custom_code
Inference Endpoints
codesage commited on
Commit
adc63c0
1 Parent(s): 49bda0e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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.size()[0]}, with norm={embedding.norm().item()}')
39
- print(embedding)
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