How to use from
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 "Harsh2026verma/code-generator-model" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "Harsh2026verma/code-generator-model",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
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 "Harsh2026verma/code-generator-model" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "Harsh2026verma/code-generator-model",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

πŸ”’ Hinglish Cybersecurity & Web Development Expert

Model Overview

HinglishCyberSec is a fine-tuned CodeLlama-7B model specialized in multilingual cybersecurity and full-stack web development. It understands and generates code in Hindi, English, and Hinglish (Hindi+English mix).

🎯 What This Model Does

Capability Description
🌐 Multilingual Responds in Hindi, English, or Hinglish
πŸ›‘οΈ Cybersecurity SQL injection, XSS, DDoS, JWT, Encryption, CSRF protection
πŸ’» Web Development HTML, CSS, JavaScript, React, Flask, Express, PHP
πŸ”’ Security Headers CSP, HSTS, X-Frame-Options implementation
πŸ“Š Rate Limiting DDoS protection, API rate limiting
πŸ” Authentication JWT, bcrypt, session management
πŸ“ Code Explanation Explains code in simple Hinglish

Model Details

Basic Information

  • Developed by: Harsh Verma
  • Model type: Causal Language Model (Fine-tuned CodeLlama-7B)
  • Language(s): Hindi, English, Hinglish (Hindi + English mix)
  • License: MIT
  • Base Model: CodeLlama-7B
  • Fine-tuned on: Custom multilingual cybersecurity + web development dataset

Model Sources


Uses

Direct Use

This model can be used for:

# 1. Generate secure code in Hinglish
response = model.generate("SQL injection se bachne ka tarika batao")

# 2. Create web applications
response = model.generate("Ek responsive navbar banao with logo and 3 links")

# 3. Security audit
response = model.generate("Is code mein SQL injection vulnerability hai?")

# 4. DDoS protection
response = model.generate("Flask mein rate limiting kaise lagayein?")
Downloads last month
90
Safetensors
Model size
0.2B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using Harsh2026verma/code-generator-model 1