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
Download config.json from Dev9124/EKA-1-INT4: direct link, hf CLI and curl.
- Browser
- Download file 3.84 kB
-
https://huggingface.co/Dev9124/EKA-1-INT4/resolve/main/config.json
- Command line
-
hf download hf://Dev9124/EKA-1-INT4/config.json
-
curl -L -o config.json https://huggingface.co/Dev9124/EKA-1-INT4/resolve/main/config.json
3.84 kB
| { | |
| "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 | |
| } | |