Text Generation
Transformers
Safetensors
gpt2
cybersecurity
web-development
multilingual
hindi
hinglish
code-generation
security
ddos-protection
sql-injection
xss-prevention
text-generation-inference
Instructions to use Harsh2026verma/code-generator-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Harsh2026verma/code-generator-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Harsh2026verma/code-generator-model")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Harsh2026verma/code-generator-model") model = AutoModelForCausalLM.from_pretrained("Harsh2026verma/code-generator-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Harsh2026verma/code-generator-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Harsh2026verma/code-generator-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/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
docker model run hf.co/Harsh2026verma/code-generator-model
- SGLang
How to use Harsh2026verma/code-generator-model 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 "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 }' - Docker Model Runner
How to use Harsh2026verma/code-generator-model with Docker Model Runner:
docker model run hf.co/Harsh2026verma/code-generator-model
File size: 2,143 Bytes
be478fd 4b2945d 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd abd0547 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 be478fd 3916948 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | ---
library_name: transformers
license: mit
metrics:
- accuracy
- bleu
- code_eval
pipeline_tag: text-generation
tags:
- cybersecurity
- web-development
- multilingual
- hindi
- hinglish
- code-generation
- security
- ddos-protection
- sql-injection
- xss-prevention
---
# π 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
- **Repository:** [Your ]
- **Demo:** [https://huggingface.co/spaces/Harsh2026verma/Rudra-chatbot]
- **Dataset:** [Link to your dataset]
---
## Uses
### Direct Use
This model can be used for:
```python
# 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?") |