tehranixyz
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -16,8 +16,8 @@ This version of the model is the base version of **C++-CUDA translation** withou
|
|
16 |
from transformers import AutoTokenizer, EncoderDecoderModel
|
17 |
|
18 |
# Load the CodeRosetta model and tokenizer
|
19 |
-
model = EncoderDecoderModel.from_pretrained('CodeRosetta/
|
20 |
-
tokenizer = AutoTokenizer.from_pretrained('CodeRosetta/
|
21 |
|
22 |
# Encode the input C++ Code
|
23 |
input_cpp_code = "void add_100 ( int numElements , int * data ) { for ( int idx = 0 ; idx < numElements ; idx ++ ) { data [ idx ] += 100 ; } }"
|
|
|
16 |
from transformers import AutoTokenizer, EncoderDecoderModel
|
17 |
|
18 |
# Load the CodeRosetta model and tokenizer
|
19 |
+
model = EncoderDecoderModel.from_pretrained('CodeRosetta/CodeRosetta_cpp_cuda_base')
|
20 |
+
tokenizer = AutoTokenizer.from_pretrained('CodeRosetta/CodeRosetta_cpp_cuda_base')
|
21 |
|
22 |
# Encode the input C++ Code
|
23 |
input_cpp_code = "void add_100 ( int numElements , int * data ) { for ( int idx = 0 ; idx < numElements ; idx ++ ) { data [ idx ] += 100 ; } }"
|