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
docs: update model card
Browse files
README.md
CHANGED
|
@@ -19,7 +19,6 @@ Iridium is a 72B parameter language model created through a merge of Qwen2-72B-I
|
|
| 19 |
|
| 20 |
## Features
|
| 21 |
- 72 billion parameters
|
| 22 |
-
- Comes in 1,043 individual safetensor files
|
| 23 |
- Combines Magnum prose with Calam smarts
|
| 24 |
|
| 25 |
## Technical Specifications
|
|
@@ -28,14 +27,14 @@ Iridium is a 72B parameter language model created through a merge of Qwen2-72B-I
|
|
| 28 |
- `Qwen2ForCasualLM`
|
| 29 |
- Models: Qwen2-72B-Instruct (base), calme2.1-72b, magnum-72b-v1
|
| 30 |
- Merged layers: 80
|
| 31 |
-
- Total tensors:
|
| 32 |
- Context length: 128k
|
| 33 |
|
| 34 |
### Tensor Distribution
|
| 35 |
- Attention layers: 560 files
|
| 36 |
- MLP layers: 240 files
|
| 37 |
- Layer norms: 160 files
|
| 38 |
-
- Miscellaneous (embeddings, output):
|
| 39 |
|
| 40 |
### Merging
|
| 41 |
Custom script utilizing safetensors library.
|
|
|
|
| 19 |
|
| 20 |
## Features
|
| 21 |
- 72 billion parameters
|
|
|
|
| 22 |
- Combines Magnum prose with Calam smarts
|
| 23 |
|
| 24 |
## Technical Specifications
|
|
|
|
| 27 |
- `Qwen2ForCasualLM`
|
| 28 |
- Models: Qwen2-72B-Instruct (base), calme2.1-72b, magnum-72b-v1
|
| 29 |
- Merged layers: 80
|
| 30 |
+
- Total tensors: 963
|
| 31 |
- Context length: 128k
|
| 32 |
|
| 33 |
### Tensor Distribution
|
| 34 |
- Attention layers: 560 files
|
| 35 |
- MLP layers: 240 files
|
| 36 |
- Layer norms: 160 files
|
| 37 |
+
- Miscellaneous (embeddings, output): 3 files
|
| 38 |
|
| 39 |
### Merging
|
| 40 |
Custom script utilizing safetensors library.
|