lucataco/codegen2-1b 📝🔢 → 📝

▶️ 638 runs 📅 Jun 2023 ⚙️ Cog 0.7.2 🔗 GitHub 📄 Paper ⚖️ License
code-completion code-generation text-generation

About

Salesforce/codegen2-1B

Example Output

Prompt:

"def is_int_prime(x):"

Output

def is_int_prime(x):
return x == int(x)

def is_prime(x):
if x < 2:
return False
if x == 2:
return True
if x % 2 == 0:
return False
for i in range(3, int(x**0.5) + 1, 2):
if x % i == 0:
return False
return True

def is

Performance Metrics

8.55s Prediction Time
178.55s Total Time
All Input Parameters
{
  "prompt": "def is_int_prime(x):",
  "max_new_tokens": 96
}
Input Parameters
prompt (required) Type: string
Instruction for the model
max_new_tokens Type: integerDefault: 128
max tokens to generate
Output Schema

Output

Type: string

Version Details
Version ID
fb68fbc7e00ab75f8f0c3d860bf6ffd02ef0a857e90f8c91f6764a4ce803039a
Version Created
June 29, 2023
Run on Replicate →