</>ViCoderHTML-32B-PREVIEW

Instantly sketch web interfaces with HTML, Tailwind CSS, and JavaScript.

ViCoder: Web Sketching Specialist

A preview model focused on rapidly generating code for web components and pages using modern frontend technologies.

Key Capabilities

Semantic HTML Structure

Generates well-organized HTML5 for accessibility and clarity.

Tailwind CSS Styling

Applies utility-first classes for modern, responsive designs.

JavaScript Interactivity

Adds basic dynamic behavior and event handling.

Ideal For...

Web Developers

Quickly scaffold components.

Frontend Engineers

Prototype UIs rapidly.

Designers

Turn mockups into code.

Learners

Experiment with web tech.

Technical Specifications

Core details of the ViCoder-html preview model.

Model Type
Code Generation (Instruction-tuned LM)
Languages
HTML, Tailwind CSS, JavaScript
Library
🤗 Transformers, Accelerate, TRL

Generated Results

Example usage and sample output.

Example Usage (Python)

from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
import torch

# Define model ID
model_id = "VicharAI/ViCoder-html-32B-preview"

# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16, # Or torch.float16
    device_map="auto"
)

messages = [
    {"role": "user", "content": "A modern, sleek landing page for a company focusing on open-source LLM solutions"},
]
inputs = tokenizer.apply_chat_template(
    messages,
    tokenize = True,
    add_generation_prompt = True,
    return_tensors = "pt",
).to("cuda")

from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer, skip_prompt = True)
_ = model.generate(input_ids = inputs, streamer = text_streamer, max_new_tokens = 16000,
                   use_cache = True, temperature = 0.7, min_p = 0.1, repetition_penalty=1.1)

Sample Output (HTML)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Our Love Story - Surprise Website</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Tailwind CSS CDN -->
  <script src="https://cdn.tailwindcss.com"></script>
  <style>
    /* Custom animation classes */...
  </style>
</head>
<body>
  <!-- Content would go here -->
</body>
</html>

(*Actual output may vary. Always review generated code.*)

Note: Formal benchmarks are not yet available for this preview model.(HTML samples coming soon!)

Constantly Evolving

The ViCoder series is actively under development.

Roadmap Highlights
Future plans for the ViCoder model family.
  • ViCoder-html-32B-preview (Current)
  • ViCoder-html-32B (v1.0 - Planned)
  • ViCoder-js-32B (Advanced JS)
  • Formal Benchmarking

This is a preview release. Limitations include potential inaccuracies and lack of formal benchmarks.

Explore the ViCoder Preview!

Dive deeper into the model on Hugging Face, check out the code examples, and stay tuned for future updates to the ViCoder series.

View on Hugging Face
Ollama Logo Ollama (coming soon)