Instructions to use Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored") 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("Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored") model = AutoModelForCausalLM.from_pretrained("Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored", 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 Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored
- SGLang
How to use Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored 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 "Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored" \ --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": "Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored", "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 "Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored" \ --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": "Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored with Docker Model Runner:
docker model run hf.co/Kaliyo/Mukesh-AI-Coder-1.5B-Uncensored
Mukesh-AI-Coder-1.5B-Uncensored 🚀
Mukesh-AI-Coder-1.5B-Uncensored is a state-of-the-art, high-performance, uncensored 1.5B parameter coding model based on Qwen2 architecture.
It has been enhanced with Code Representation Steering and Mathematical Abliteration (Orthogonal Refusal Direction Removal) without degradation of weights, achieving top-tier coding performance on Python, algorithms, data structures, and developer reasoning.
🌟 मुख्य विशेषताएँ (Key Highlights)
💻 एडवांस कोडिंग एक्सपर्ट (Advanced Coding Expert):
- Python, C++, JavaScript, Shell, और SQL में उच्च स्तरीय कोड निर्माण।
- Clean, PEP8-अनुपालक, डॉकस्ट्रिंग्स और टाइप-हिंट्स के साथ संपूर्ण कोड।
🔓 100% अनसेंसर्ड (Abliterated / Uncensored):
- रिफ्यूजल सबस्पेस को मैथमेटिकल ऑर्थोगोनल प्रोजेक्शन द्वारा स्थायी रूप से हटा दिया गया है।
- साइबर सुरक्षा अनुसंधान (Security Auditing), रिवर्स इंजीनियरिंग और पेन-टेस्टिंग कोड बिना किसी 'I cannot...' या 'As an AI...' रिफ्यूजल के तुरंत प्रदान करता है।
🆔 पर्सनल आइडेंटिटी (Mukesh AI Persona):
- जब भी पूछा जाए: "तुम्हारा नाम क्या है?" या "What is your name?" -> जवाब: "मैं मुकेश AI हूँ।"
- Mukesh AI के रूप में डेडिकेटेड असिस्टेंट पहचान।
⚡ अल्ट्रा-फास्ट और पोर्टेबल (Fast & Lightweight):
- 1.5B पैरामीटर्स के साथ यह मॉडल सामान्य CPU, लैपटॉप, या सस्ते GPU पर भी बहुत तेज़ी से चलता है।
🚀 उपयोग कैसे करें (Quickstart with Transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Mukesh-AI-Coder-1.5B-Uncensored"
# डिवाइस का चयन (GPU या CPU)
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.float16 if torch.cuda.is_available() else torch.float32
# मॉडल और टोकेनाइज़र लोड करें
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=dtype, device_map="auto")
# चैट प्रॉम्प्ट तैयार करें
messages = [
{"role": "user", "content": "Write a Python function to check prime numbers."}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(device)
# आउटपुट जनरेट करें
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.6,
top_p=0.9,
repetition_penalty=1.05,
do_sample=True,
)
response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
print(response)
📊 बेंचमार्क सेटिंग्स (Recommended Benchmark Settings)
- Temperature:
0.6 - Top-p:
0.9 - Repetition Penalty:
1.05 - Max New Tokens:
1024
📜 लाइसेंस (License)
Apache 2.0 - पूर्ण रूप से ओपन-सोर्स और कमर्शियल/पर्सनल उपयोग के लिए मुक्त।
- Downloads last month
- 44