Text Generation
Transformers
Safetensors
English
Korean
exaone_moe
lg-ai
exaone
k-exaone
Mixture of Experts
reap
nvfp4
nvfp4a16
w4a16
compressed-tensors
conversational
8-bit precision
Instructions to use Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4") model = AutoModelForCausalLM.from_pretrained("Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4", 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 Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4
- SGLang
How to use Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4 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 "Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4" \ --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": "Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4", "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 "Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4" \ --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": "Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4 with Docker Model Runner:
docker model run hf.co/Baekpica/K-EXAONE-145B-A23B-REAP-76E-NVFP4
Replace two large safetensors shards with six smaller shards
Browse filesReshard the 95,688,665,840-byte main checkpoint payload into six balanced ~15.95 GB files for lower transient loading memory. Tensor names, shapes, dtypes, and all 96,745,692,400 indexed payload bytes (including the unchanged MTP shard) were exhaustively verified bitwise. Index total_parameters and total_size remain unchanged.
checkpoint_audit.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"checkpoint": "models/K-EXAONE-145B-A23B-REAP-76E-NVFP4",
|
| 3 |
-
"serialized_bytes":
|
| 4 |
"index_metadata": {
|
| 5 |
"total_parameters": 86115666376,
|
| 6 |
"total_size": 96745692400
|
|
@@ -58,4 +58,4 @@
|
|
| 58 |
"passed": true
|
| 59 |
},
|
| 60 |
"passed": true
|
| 61 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
"checkpoint": "models/K-EXAONE-145B-A23B-REAP-76E-NVFP4",
|
| 3 |
+
"serialized_bytes": 96749837304,
|
| 4 |
"index_metadata": {
|
| 5 |
"total_parameters": 86115666376,
|
| 6 |
"total_size": 96745692400
|
|
|
|
| 58 |
"passed": true
|
| 59 |
},
|
| 60 |
"passed": true
|
| 61 |
+
}
|
model-00001-of-00002.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8c40f36e583e9760f32f63d23fa1189a89742a5063b39ab857c25c73ed45fd08
|
| 3 |
-
size 49996262104
|
|
|
|
|
|
|
|
|
|
|
|
model-00002-of-00002.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:179efe413ab5c9b189959f3880a51475f89435948c3f31868244f5e255f3854e
|
| 3 |
-
size 45696522648
|
|
|
|
|
|
|
|
|
|
|
|
model.safetensors.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|