Text Generation
Transformers
Safetensors
eka_v1
eka
raslnet
mamba2
Mixture of Experts
mla
int4
weight-only
conversational
custom_code
8-bit precision
Run this model with HF Jobs
Run Dev9124/EKA-1-INT4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Dev9124/EKA-1-INT4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Dev9124/EKA-1-INT4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Dev9124/EKA-1-INT4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Dev9124/EKA-1-INT4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dev9124/EKA-1-INT4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dev9124/EKA-1-INT4", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Dev9124/EKA-1-INT4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dev9124/EKA-1-INT4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dev9124/EKA-1-INT4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dev9124/EKA-1-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Dev9124/EKA-1-INT4
- SGLang
How to use Dev9124/EKA-1-INT4 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 "Dev9124/EKA-1-INT4" \ --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": "Dev9124/EKA-1-INT4", "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 "Dev9124/EKA-1-INT4" \ --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": "Dev9124/EKA-1-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Dev9124/EKA-1-INT4 with Docker Model Runner:
docker model run hf.co/Dev9124/EKA-1-INT4
File size: 3,840 Bytes
b32b5a9 | 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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | {
"architectures": [
"EkaV1ForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"auto_map": {
"AutoConfig": "configuration_eka.EkaV1Config",
"AutoModel": "modeling_eka.EkaV1Model",
"AutoModelForCausalLM": "modeling_eka.EkaV1ForCausalLM"
},
"aux_loss_alpha": 0.001,
"bos_token_id": 1,
"dsa_indexer_head_dim": null,
"dsa_indexer_loss_coeff": null,
"dsa_indexer_n_heads": null,
"dsa_indexer_topk": null,
"dsa_indexer_use_sparse_loss": false,
"dtype": "bfloat16",
"eka_quantization": {
"bits": 4,
"format_version": 1,
"group_size": 64,
"method": "weight-only symmetric"
},
"enable_hyper_connections": false,
"enable_mamba": true,
"eos_token_id": 2,
"ep_size": 1,
"first_k_dense_replace": 0,
"hidden_act": "silu",
"hidden_size": 2688,
"hybrid_override_pattern": "MEMEM*EMEMEM*EMEMEM*EMEMEM*EMEMEM*EMEMEMEM*EMEMEMEME",
"initializer_range": 0.006,
"intermediate_size": 1856,
"is_hybrid_model": true,
"kv_lora_rank": 256,
"layer_types": [
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"full_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"full_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"full_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"full_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"full_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"full_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe",
"linear_attention",
"moe"
],
"mamba_head_dim": 64,
"mamba_num_groups": 8,
"mamba_num_heads": 64,
"mamba_state_dim": 128,
"max_position_embeddings": 65536,
"mhc_init_gating_factor": null,
"mhc_sinkhorn_iterations": null,
"model_type": "eka_v1",
"moe_intermediate_size": 1856,
"moe_latent_size": 1344,
"moe_layer_freq": [
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
],
"mtp_loss_scaling_factor": 0.1,
"mtp_num_layers": 1,
"multi_latent_attention": true,
"n_group": 1,
"n_routed_experts": 128,
"n_shared_experts": 2,
"norm_topk_prob": true,
"num_attention_heads": 32,
"num_experts_per_tok": 6,
"num_hidden_layers": 52,
"num_key_value_heads": 32,
"num_nextn_predict_layers": 1,
"num_residual_streams": null,
"pad_token_id": null,
"q_lora_rank": 512,
"qk_layernorm": true,
"qk_nope_head_dim": 128,
"qk_rope_head_dim": 64,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"beta_fast": 32,
"beta_slow": 1,
"factor": 16,
"mscale": 1.0,
"mscale_all_dim": 1.0,
"original_max_position_embeddings": 4096,
"rope_theta": 10000.0,
"rope_type": "yarn",
"type": "yarn"
},
"rope_theta": 10000.0,
"rotary_interleaved": false,
"routed_scaling_factor": 2.5,
"scoring_func": "sigmoid",
"tie_word_embeddings": false,
"topk_group": 1,
"topk_method": "noaux_tc",
"transformers_version": "5.17.0",
"tst_bag_size": null,
"tst_enabled": false,
"tst_superposition_iters": null,
"use_cache": true,
"v_head_dim": 128,
"value_residual_subtraction": false,
"vocab_size": 256000
}
|