Text Generation
Transformers
Safetensors
English
phi3
text-generation-inference
code
agent
custom-tune
slerp-merge
ties-merge
reasoning
conversational
Instructions to use Jagneshdeveloper/Ekant-14b-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jagneshdeveloper/Ekant-14b-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jagneshdeveloper/Ekant-14b-small") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Jagneshdeveloper/Ekant-14b-small") model = AutoModelForCausalLM.from_pretrained("Jagneshdeveloper/Ekant-14b-small", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jagneshdeveloper/Ekant-14b-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jagneshdeveloper/Ekant-14b-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jagneshdeveloper/Ekant-14b-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jagneshdeveloper/Ekant-14b-small
- SGLang
How to use Jagneshdeveloper/Ekant-14b-small 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 "Jagneshdeveloper/Ekant-14b-small" \ --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": "Jagneshdeveloper/Ekant-14b-small", "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 "Jagneshdeveloper/Ekant-14b-small" \ --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": "Jagneshdeveloper/Ekant-14b-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jagneshdeveloper/Ekant-14b-small with Docker Model Runner:
docker model run hf.co/Jagneshdeveloper/Ekant-14b-small
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation-inference
|
| 5 |
+
- transformers
|
| 6 |
+
- code
|
| 7 |
+
- agent
|
| 8 |
+
- text-generation
|
| 9 |
+
- custom-tune
|
| 10 |
+
- slerp-merge
|
| 11 |
+
- ties-merge
|
| 12 |
+
- reasoning
|
| 13 |
+
base_model:
|
| 14 |
+
- microsoft/phi-4
|
| 15 |
+
- microsoft/Phi-4-reasoning-plus
|
| 16 |
+
language:
|
| 17 |
+
- en
|
| 18 |
+
pipeline_tag: text-generation
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
<div align="center">
|
| 22 |
+
|
| 23 |
+
# ๐ฎ๐ณ Akant-14B-small (Ultimate Reasoning Edition)
|
| 24 |
+
|
| 25 |
+
## ๐ **Made in India** ๐
|
| 26 |
+
|
| 27 |
+
<h3>๐ A High-Performance Specialist Model Fused with Deep Reasoning</h3>
|
| 28 |
+
|
| 29 |
+
<p align="center">
|
| 30 |
+
Developed by <b>Jagneshdeveloper</b>
|
| 31 |
+
</p>
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
`๐ License: MIT` | `โ๏ธ Parameters: 14 Billion` | `๐ป Focus: Elite Coding, Reasoning & Agents`
|
| 36 |
+
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## ๐ Overview
|
| 42 |
+
|
| 43 |
+
**Akant-14B-small** is an advanced 14-billion parameter large language model proudly developed by **Jagneshdeveloper**. While initially initialized via custom-trained adapter matrices, this final artifact is a **fully unquantized standalone model** in true `float16` precision.
|
| 44 |
+
|
| 45 |
+
Built on top of the powerful **microsoft/phi-4** architecture, this model has been custom-engineered and cross-compiled across multiple advanced mathematical optimization passes (including **SLERP** and **TIES** multi-model fusion protocols) to integrate elite agentic logic with deep, multi-step validation tracking.
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## ๐ฌ Fusing & Pipeline Lifecycle
|
| 50 |
+
|
| 51 |
+
This model was compiled under a strict resource-constrained hardware architecture using custom disk-free sharded watchdog pipelines to guarantee full float precision mapping without accuracy loss:
|
| 52 |
+
1. **LoRA Fine-Tuning**: Initial specialized instruction sets were targeted and compiled into low-rank matrix sub-layers (`akant-adaptet`).
|
| 53 |
+
2. **Base Integration**: Unquantized adapter weights were chemically baked directly back into the core 29.3GB `microsoft/phi-4` tensor layers.
|
| 54 |
+
3. **Vanilla Alignment**: Merged via **SLERP** (Spherical Linear Interpolation) at a calibrated `0.6/0.4` ratio back with the foundational base model to act as a stabilizing anchor and counteract catastrophic forgetting.
|
| 55 |
+
4. **Deep Reasoning Injection**: Fused via **TIES** (Trimming, Electing, and Merging) to combine our custom capabilities directly with reinforcement-learned o3-style logic pathways.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## โก Key Capabilities
|
| 60 |
+
|
| 61 |
+
* **๐ง Deep Reasoning plus**: Features integrated reflection traces, error self-correction blocks, and highly granular problem-solving structures.
|
| 62 |
+
* **๐ป Coding Specialist**: Optimized to write, debug, analyze, and safely refactor high-complexity code structures across Python, JavaScript, C++, Rust, and Go.
|
| 63 |
+
* **๐ค Agentic Excellence**: High structural accuracy for tool-use, functional api execution loops, and generating strictly formatted outputs (like complex JSON or nested system commands).
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
## ๐ Model Summary
|
| 68 |
+
|
| 69 |
+
* **Model Name:** Akant-14B-small (Ultimate Edition)
|
| 70 |
+
* **Developer:** Jagneshdeveloper
|
| 71 |
+
* **Base Architecture:** Built on top of Microsoft Phi-4 (Phi3 For Causal LM Core Class)
|
| 72 |
+
* **Parameters:** 14 Billion (14B)
|
| 73 |
+
* **License:** MIT (Permissive Open-Source)
|
| 74 |
+
* **Primary Language:** English (en)
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## ๐ป Quick Start
|
| 79 |
+
|
| 80 |
+
You can quickly load and deploy **Akant-14B-small** using the Hugging Face `transformers` library:
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 84 |
+
import torch
|
| 85 |
+
|
| 86 |
+
model_name = "Jagneshdeveloper/ultimate-Ekant-14b"
|
| 87 |
+
|
| 88 |
+
# Load the optimized tokenizer and model
|
| 89 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 90 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 91 |
+
model_name,
|
| 92 |
+
device_map="auto",
|
| 93 |
+
torch_dtype=torch.float16,
|
| 94 |
+
trust_remote_code=True
|
| 95 |
+
)
|
| 96 |
+
|
| 97 |
+
# Test prompt for deep reasoning & agentic execution
|
| 98 |
+
prompt = "Write an optimized Python script to scrape website data dynamically, handle API authentication token refreshes, and format it into a structured JSON array."
|
| 99 |
+
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
| 100 |
+
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.5, do_sample=True)
|
| 101 |
+
|
| 102 |
+
print(tokenizer.decode(outputs, skip_special_tokens=True))
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
## ๐ ๏ธ Intended Uses & Limitations
|
| 108 |
+
|
| 109 |
+
### Ideal Use Cases
|
| 110 |
+
* Building autonomous AI agents and automated API execution loops.
|
| 111 |
+
* Serving as a local or cloud-hosted programming and mathematical reasoning assistant.
|
| 112 |
+
* Handling multi-step logical text generation and complex data extraction tasks.
|
| 113 |
+
|
| 114 |
+
### Limitations
|
| 115 |
+
* Standard 14B computing constraints apply; heavy inference calls may require sharding or quantization depending on available VRAM allocations.
|
| 116 |
+
* Users should verify complex logic outputs before running generated scripts straight into a live production workspace.
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
## ๐ค Attribution & Support
|
| 121 |
+
|
| 122 |
+
Created with โค๏ธ by **Jagneshdeveloper** in India. This model is distributed under the open and permissive **MIT License**, providing full freedom for commercial deployment, adjustments, and derivatives.
|
| 123 |
+
|
| 124 |
+
Special credit and attribution are extended to **Microsoft** and **Nvidia** for their foundational open-weights research contributions (`phi-4` and `Phi-4-reasoning-plus`), which served as the essential structural pillars and base anchors for this advanced mathematical crossover fusion project.
|
| 125 |
+
|
| 126 |
+
For feedback, feature requests, or collaborations, feel free to open a discussion in the community tab!
|