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
Upload model.safetensors.index.json with huggingface_hub
Browse files- model.safetensors.index.json +44 -1
model.safetensors.index.json
CHANGED
|
@@ -3,7 +3,50 @@
|
|
| 3 |
"total_size": 29000000000
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
-
"model.embed_tokens.weight":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"model.norm.weight": "model-9.safetensors",
|
| 8 |
"lm_head.weight": "model-9.safetensors",
|
| 9 |
"model.layers.0.self_attn.qkv_proj.weight": "model-1.safetensors",
|
|
|
|
| 3 |
"total_size": 29000000000
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
+
"model.embed_tokens.weight": [
|
| 7 |
+
"model-1.safetensors",
|
| 8 |
+
"model-10.safetensors",
|
| 9 |
+
"model-11.safetensors",
|
| 10 |
+
"model-12.safetensors",
|
| 11 |
+
"model-13.safetensors",
|
| 12 |
+
"model-14.safetensors",
|
| 13 |
+
"model-15.safetensors",
|
| 14 |
+
"model-16.safetensors",
|
| 15 |
+
"model-17.safetensors",
|
| 16 |
+
"model-18.safetensors",
|
| 17 |
+
"model-19.safetensors",
|
| 18 |
+
"model-2.safetensors",
|
| 19 |
+
"model-20.safetensors",
|
| 20 |
+
"model-21.safetensors",
|
| 21 |
+
"model-22.safetensors",
|
| 22 |
+
"model-23.safetensors",
|
| 23 |
+
"model-24.safetensors",
|
| 24 |
+
"model-25.safetensors",
|
| 25 |
+
"model-26.safetensors",
|
| 26 |
+
"model-27.safetensors",
|
| 27 |
+
"model-28.safetensors",
|
| 28 |
+
"model-29.safetensors",
|
| 29 |
+
"model-3.safetensors",
|
| 30 |
+
"model-30.safetensors",
|
| 31 |
+
"model-31.safetensors",
|
| 32 |
+
"model-32.safetensors",
|
| 33 |
+
"model-33.safetensors",
|
| 34 |
+
"model-34.safetensors",
|
| 35 |
+
"model-35.safetensors",
|
| 36 |
+
"model-36.safetensors",
|
| 37 |
+
"model-37.safetensors",
|
| 38 |
+
"model-38.safetensors",
|
| 39 |
+
"model-39.safetensors",
|
| 40 |
+
"model-4.safetensors",
|
| 41 |
+
"model-40.safetensors",
|
| 42 |
+
"model-41.safetensors",
|
| 43 |
+
"model-42.safetensors",
|
| 44 |
+
"model-5.safetensors",
|
| 45 |
+
"model-6.safetensors",
|
| 46 |
+
"model-7.safetensors",
|
| 47 |
+
"model-8.safetensors",
|
| 48 |
+
"model-9.safetensors"
|
| 49 |
+
],
|
| 50 |
"model.norm.weight": "model-9.safetensors",
|
| 51 |
"lm_head.weight": "model-9.safetensors",
|
| 52 |
"model.layers.0.self_attn.qkv_proj.weight": "model-1.safetensors",
|