Text Generation
Transformers
Safetensors
English
qwen2
code
codeqwen
chat
qwen
qwen-coder
html
javascript
css
tailwindcss
frontend
web-development
ViCoder-html-32B-preview
ViCoder-html
ViCoder
ViCoder-html-preview
vichar ai labs
vichar ai
strive ai labs llp
strive ai labs
vichar.io
conversational
text-generation-inference
Run this model with HF Jobs
Run vicharai/ViCoder-html-32B-preview on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/vicharai/ViCoder-html-32B-preview. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/vicharai/ViCoder-html-32B-preview on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/vicharai/ViCoder-html-32B-preview. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/vicharai/ViCoder-html-32B-preview with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use vicharai/ViCoder-html-32B-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vicharai/ViCoder-html-32B-preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vicharai/ViCoder-html-32B-preview") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("vicharai/ViCoder-html-32B-preview") model = AutoModelForCausalLM.from_pretrained("vicharai/ViCoder-html-32B-preview", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vicharai/ViCoder-html-32B-preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vicharai/ViCoder-html-32B-preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vicharai/ViCoder-html-32B-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vicharai/ViCoder-html-32B-preview
- SGLang
How to use vicharai/ViCoder-html-32B-preview with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "vicharai/ViCoder-html-32B-preview" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vicharai/ViCoder-html-32B-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "vicharai/ViCoder-html-32B-preview" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vicharai/ViCoder-html-32B-preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use vicharai/ViCoder-html-32B-preview with Docker Model Runner:
docker model run hf.co/vicharai/ViCoder-html-32B-preview
Create README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231---license: apache-2.0language:- enbase_model:- Qwen/Qwen2.5-Coder-32B-Instructlibrary_name: transformerstags:- code- codeqwen- chat- qwen- qwen-coder- html- javascript- css- tailwindcss- frontend- web-development- ViCoder-html-32B-preview- ViCoder-html- ViCoder- ViCoder-html-preview- vichar ai labs- vichar ai- strive ai labs llp- strive ai labs- vichar.iopipeline_tag: text-generation---
<p align="center"> <a href="https://vichar.io" target="_blank" rel="noopener noreferrer"> <!-- Link the logo --> <img src="https://vichar.s3.ap-south-1.amazonaws.com/vicoder-html-32B.png" width="450" height="200" alt="ViCoder-html-32B-preview Logo" style="display: block; margin-left: auto; margin-right: auto; border-radius: 15px;"/> </a> <h1 align="center" style="color: #2E86C1; margin-top: 15px; margin-bottom: 5px;"> <!-- Added a subtle blue color --> ViCoder-html-32B-preview </h1></p><p align="center" style="font-size: 1.2em;"> <b>π A powerful HTML/CSS/JS sketching model powered by <a href="https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct" style="color: #5DADE2;">Qwen2.5-Coder-32B-Instruct</a> π</b> <!-- Slightly lighter blue link --></p><p align="center" style="font-size: 1.0em; color: #555;"> <i>Developed by <a href="https://vichar.io" target="_blank" rel="noopener noreferrer" style="color: #5DADE2;">Vichar AI</a> | <a href="https://huggingface.co/VicharAI" style="color: #5DADE2;">Hugging Face Profile</a></i><br/> <span style="font-size: 0.9em; color: #6c757d;">Licensed under Apache 2.0</span></p>
---
### <span style="color: #1ABC9C;">π‘ What is ViCoder-html-32B-preview?</span>
**ViCoder-html-32B-preview** is a preview model in the **ViCoder** series from <a href="https://vichar.io" target="_blank" rel="noopener noreferrer">Vichar AI</a> β a line of models specialized in **code generation**. This model focuses specifically on sketching single-page websites, such as landing pages and dashboards, using using:
- π§ **HTML** for semantic structure- π¨ **Tailwind CSS** for modern, utility-first styling- βοΈ **JavaScript** for interactivity and basic dynamic behavior
This model is ideal for:- **Web Developers:** Quickly scaffolding dashboards or page layouts.- **Frontend Engineers:** Prototyping UIs and exploring design variations.- **Designers:** Turning textual mockups into initial code sketches.- **Educators & Students:** Learning and experimenting with HTML, Tailwind CSS, and JavaScript in a practical context.
> β οΈ **Note:** This is a **preview** version. It demonstrates core capabilities but is still under active development. A more refined and robust production release is planned. Stay updated via <a href="https://vichar.io" target="_blank" rel="noopener noreferrer">vichar.io</a> or follow <a href="https://huggingface.co/VicharAI">VicharAI on Hugging Face</a>!
---
### <span style="color: #1ABC9C;">π οΈ Model Details</span>
| Property | Value || :--------------- | :------------------------------------------------------------------------------------------ || **Model Type** | Code Generation (Instruction-tuned Language Model) || **Base Model** | [Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct) || **Developed by** | [Vichar AI](https://vichar.io) ([HF Profile](https://huggingface.co/VicharAI)) || **Languages** | Primarily HTML, Tailwind CSS, JavaScript. Understands English instructions. || **Training Data**| Proprietary curated dataset focusing on high-quality web components and pages. || **License** | [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) || **Library** | π€ Transformers || **Contact** | Visit [vichar.io](https://vichar.io) or use HF Discussions |
---
### <span style="color: #1ABC9C;">π§± GGUF Quantized Versions</span>
Quantized versions of **ViCoder-html-32B-preview** in GGUF format are available for efficient local inference using [llama.cpp](https://github.com/ggerganov/llama.cpp), [LM Studio](https://lmstudio.ai/), or [Ollama](https://ollama.com/).
You can find them here:- π [GGUF Quantizations on Hugging Face](https://huggingface.co/VicharAI/ViCoder-html-32B-preview-GGUF)
These quantized variants (Q3_K_M, Q4_K_M, Q6_K, Q8_0) are useful for running the model on lower-memory hardware or for embedding in desktop/web applications.
---
### <span style="color: #1ABC9C;">β‘ Example Usage</span>
Use the `transformers` library pipeline for easy text generation. Ensure you have `transformers`, `torch`, and `accelerate` installed.
```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM, pipelineimport torch
# Define model IDmodel_id = "VicharAI/ViCoder-html-32B-preview"
# Load tokenizer and model# Use bfloat16 for faster inference if your GPU supports ittokenizer = AutoTokenizer.from_pretrained(model_id)model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype=torch.bfloat16, # Or torch.float16 if bfloat16 is not supported device_map="auto" # Automatically distribute across available GPUs/CPU)
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 TextStreamertext_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)```
---
### <span style="color: #1ABC9C;">β¨ Output Sample</span>
```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 */...```
*(**Note:** The model aims to generate complete HTML structures with Tailwind classes. Review and adapt generated code as needed.)*
---
### <span style="color: #1ABC9C;">π§ͺ Evaluation & Limitations</span>
As a **preview** release, this model has undergone initial internal testing focused on:
- **Code Correctness:** Validity of generated HTML, Tailwind CSS classes, and basic JavaScript snippets.- **Tailwind CSS Usage:** Adherence to Tailwind's utility-first principles and common patterns.- **Component Structure:** Logical organization of HTML elements for typical web components.- **Instruction Following:** Ability to understand and implement requirements from the prompt.
**Current Limitations:**
- **No Formal Benchmarks:** Not yet evaluated on standard code generation benchmarks (e.g., HumanEval-X, MBPP).- **Complex Logic:** May struggle with complex JavaScript logic, state management, or intricate CSS beyond Tailwind utilities.- **Hallucination Risk:** Like all LLMs, it can sometimes generate incorrect, incomplete, or non-optimal code. Always review the output.- **Preview Status:** Not recommended for critical production use without thorough validation.
---
### <span style="color: #1ABC9C;">π Roadmap</span>
The **ViCoder** series is an ongoing project at <a href="https://vichar.io" target="_blank" rel="noopener noreferrer">Vichar AI</a>. Our current roadmap includes:
- β
**ViCoder-html-32B-preview:** Initial public preview release (this model).- β³ **ViCoder-html-32B (v1.0):** Planned production-ready release with improved training data, fine-tuning, and evaluation.- π **ViCoder-js-32B:** Future model focusing specifically on advanced JavaScript generation (frameworks, logic).- π **ViCoder-python-32B:** Potential companion model for Python backend code generation.- π **Benchmarking & Evaluation:** Formal evaluation on relevant code generation benchmarks.
Follow <a href="https://huggingface.co/VicharAI">VicharAI on Hugging Face</a> or check the [Vichar AI website](https://vichar.io) for announcements!
---
### <span style="color: #1ABC9C;">π License</span>
This model and its code are licensed under the **Apache License 2.0**. You can find the full license text [here](https://www.apache.org/licenses/LICENSE-2.0).
---
### <span style="color: #1ABC9C;">π Citation</span>
If you use ViCoder-html-32B-preview in your projects, publications, or research, please cite it:
```bibtex@misc{vicharai_vicoder_html_32b_preview_2025, title = {ViCoder-html-32B-preview: A Preview Model for HTML/Tailwind CSS/JavaScript Sketching}, author = {Vichar AI}, year = {2025}, publisher = {Hugging Face}, url = {https://huggingface.co/VicharAI/ViCoder-html-32B-preview}, url = {https://vichar.io}}```
---
### <span style="color: #1ABC9C;">π¬ Get in Touch</span>
We welcome feedback, questions, and collaboration ideas!
- **Hugging Face:** Open an issue or start a discussion on the [model page's Community tab](https://huggingface.co/VicharAI/ViCoder-html-32B-preview/discussions).- **Website:** Visit us at [https://vichar.io](https://vichar.io) for more information about Vichar AI and the ViCoder project.- **Contact:** Find direct contact methods on the [Vichar AI website](https://vichar.io).
---
### <span style="color: #1ABC9C;">π€ Acknowledgments</span>
This project builds upon the incredible work of others:
- **SprykAI** for their support during model experimentation phases.- The **Qwen Team** at Alibaba Cloud for developing the foundational [Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct) model.- The **Hugging Face Team** for their platform and libraries (π€ Transformers, Accelerate,TRL).- The broader **open-source AI community** for continuous innovation and shared knowledge.- Development efforts by the team at [Vichar AI](https://vichar.io).
---
<p align="center" style="font-size: 1.1em; font-weight: bold; color: #2ECC71;"> <!-- Changed final line color --> π₯ This preview is just the start! Explore, build, and stay tuned for the full ViCoder suite from <a href="https://vichar.io" target="_blank" rel="noopener noreferrer" style="color: #27AE60;">Vichar AI</a>! π₯</p>README.mdAdded+231