Text Generation
Transformers
Safetensors
English
Chinese
qwen2
mergekit
conversational
text-generation-inference
Instructions to use leafspark/Iridium-72B-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leafspark/Iridium-72B-v0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="leafspark/Iridium-72B-v0.1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("leafspark/Iridium-72B-v0.1") model = AutoModelForCausalLM.from_pretrained("leafspark/Iridium-72B-v0.1", 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 leafspark/Iridium-72B-v0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "leafspark/Iridium-72B-v0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leafspark/Iridium-72B-v0.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/leafspark/Iridium-72B-v0.1
- SGLang
How to use leafspark/Iridium-72B-v0.1 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 "leafspark/Iridium-72B-v0.1" \ --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": "leafspark/Iridium-72B-v0.1", "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 "leafspark/Iridium-72B-v0.1" \ --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": "leafspark/Iridium-72B-v0.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use leafspark/Iridium-72B-v0.1 with Docker Model Runner:
docker model run hf.co/leafspark/Iridium-72B-v0.1
model: add layer 10
Browse files- model_layers_10_input_layernorm_weight.safetensors +3 -0
- model_layers_10_mlp_down_proj_weight.safetensors +3 -0
- model_layers_10_mlp_gate_proj_weight.safetensors +3 -0
- model_layers_10_mlp_up_proj_weight.safetensors +3 -0
- model_layers_10_post_attention_layernorm_weight.safetensors +3 -0
- model_layers_10_self_attn_k_proj_bias.safetensors +3 -0
- model_layers_10_self_attn_k_proj_weight.safetensors +3 -0
- model_layers_10_self_attn_o_proj_weight.safetensors +3 -0
- model_layers_10_self_attn_q_proj_bias.safetensors +3 -0
- model_layers_10_self_attn_q_proj_weight.safetensors +3 -0
- model_layers_10_self_attn_v_proj_bias.safetensors +3 -0
- model_layers_10_self_attn_v_proj_weight.safetensors +3 -0
model_layers_10_input_layernorm_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3cce884914dba2f00672c6a58e2a799d040633b28cdd7085d6134386794a7fb
|
| 3 |
+
size 16496
|
model_layers_10_mlp_down_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a60289239c76b4c1540241edee2470de4e41c9a13f98339d6362ee9741fff6ae
|
| 3 |
+
size 484442232
|
model_layers_10_mlp_gate_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:902a7dd07db10d40c2c63120b896e82ad90e1a006eb2a08d8d41d0a6fd908144
|
| 3 |
+
size 484442232
|
model_layers_10_mlp_up_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42891c9517ce3400130963fa93cb8a69a6faa677e163f3b56e307a50c35feb9d
|
| 3 |
+
size 484442232
|
model_layers_10_post_attention_layernorm_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b923e13d7554533562bfed23d6813a17ebb1a5196c3f9b1e131dfcc2f27475d
|
| 3 |
+
size 16504
|
model_layers_10_self_attn_k_proj_bias.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33ebc068557ae1c27a0cd961c3170bc04dd84d6708c173ea7af7aa89d9092afe
|
| 3 |
+
size 2160
|
model_layers_10_self_attn_k_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8cbb5c54d2ae3c2611e3de1da10f3095aab93fcfd3cd17231e71c30d18525e4
|
| 3 |
+
size 16777336
|
model_layers_10_self_attn_o_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a2f1d80938daec563f65ce987945e57a5fdd59eaa389dc79a8891cad8b9da61
|
| 3 |
+
size 134217848
|
model_layers_10_self_attn_q_proj_bias.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:097dc7c52eb83ff395930f4b2e9eda862e5f9355e221be152f3ccba4ab6bf842
|
| 3 |
+
size 16496
|
model_layers_10_self_attn_q_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d454568ca32fedf93d38eefb6f57f0521205fe4f860a023e12988185bf245aa0
|
| 3 |
+
size 134217848
|
model_layers_10_self_attn_v_proj_bias.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:911b74d53e856fbcbbe4fd531a513bfe65487a3719604728cbeafbb533e9dd5f
|
| 3 |
+
size 2160
|
model_layers_10_self_attn_v_proj_weight.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ae5aa0a25daefa27282930840db1a3dbb9bd14985e6a1dd0226d7fd99b1932f
|
| 3 |
+
size 16777336
|