CoolFace
Apppublic

freealise/Code-Generation-with-Language-Specific-LoRa-Models

sourceHugging Faceopenrailupdated 2y agoView on Hugging Face
0likes
current_solution.json17 linesDownload Raw Back to current_solution
1{2    "prompt": "def add(x: int, y: int) -> int:\n    \"\"\"Add two numbers x and y\n    >>> add(2, 3)\n    5\n    >>> add(5, 7)\n    12\n    \"\"\"\n",3    "tests": "def check(candidate):\n    assert candidate(0, 1) == 1\n    assert candidate(1, 0) == 1\n    assert candidate(2, 3) == 5\n    assert candidate(5, 7) == 12\n    assert candidate(7, 5) == 12\n\ndef test_check():\n    check(add)\n\ntest_check()\n",4    "stop_tokens": [5        "\ndef",6        "\n#",7        "\nif",8        "\nclass"9    ],10    "completions": [11        "    return x + y\n"12    ],13    "temperature": 0.2,14    "top_p": 0.95,15    "max_new_tokens": 1,16    "language": "python"17}