Coder Social home page Coder Social logo

fill-in-the-skeleton's Introduction

fill-in-the-skeleton

Skeleton of Thought meets Fill-in-the-Middle (FIM) training

Read https://arxiv.org/abs/2307.15337 and https://arxiv.org/abs/2207.14255

Example for code generation:

<|start_skeleton|>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Multi-Column Nested Layout</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">

    <!-- Main flex container -->
    <div class="flex h-screen">

        <!-- Sidebar -->
        <div class="bg-gray-800 text-white w-64 p-5">
<|fill_start|>1<|fill_end|>
        </div>

        <!-- Content area -->
        <div class="flex-1 flex flex-col">
<|fill_start|>2<|fill_end|>
        </div>
    </div>

</body>
</html>
<|end_skeleton|>
<|start_skeleton|>1
            <h1 class="text-xl font-semibold mb-5">Sidebar</h1>
            <ul>
                <li class="mb-3">Home</li>
                <li class="mb-3">About</li>
                <li class="mb-3">Services</li>
                <li>Contact</li>
            </ul>
<|end_skeleton|>
<|start_skeleton|>2
            <!-- Top navigation bar -->
            <div class="bg-gray-700 text-white p-5">
                <h2 class="text-lg font-semibold">Top Navigation</h2>
            </div>

            <!-- Body content -->
            <div class="flex-1 p-10">
                <h3 class="text-2xl font-semibold mb-5">Main Body Content</h3>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam.
                </p>
            </div>
<|end_skeleton|>
<|EOS|>

fill-in-the-skeleton's People

Contributors

glavin001 avatar

Stargazers

 avatar Joel Kuntz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.