Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit f29ec54

Browse files
author
Nghi Bui
committed
update
1 parent 8bdca54 commit f29ec54

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

codetf/models/causal_lm_models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def forward(self, sources, max_length=512):
8787
generated_ids = self.model.generate(**encoding,
8888
max_length=max_length)
8989

90-
print(generated_ids)
9190
predictions = self.tokenizer.batch_decode(generated_ids, truncate_before_pattern=[r"\n\n^#", "^'''", "\n\n\n"])
9291
return predictions
9392

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setup(
3535
name = 'salesforce-codetf',
36-
version = "1.0.1.1",
36+
version = "1.0.2",
3737
py_modules = ['codetf'],
3838
description = 'CodeTF: A Transformer-based Library for Code Intelligence',
3939
author = 'Nghi D. Q. Bui',

test_inference/test_starcoder_nl2code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
model_type="starcoder-15.5B", is_eval=True,
99
load_in_8bit=True, weight_sharding=False)
1010

11-
prompts = "# this function prints hello world"
11+
prompts = "def print_hello_world():"
1212
code_snippets = model.predict([prompts])
1313

1414
print(code_snippets)

0 commit comments

Comments
 (0)