Instructions to use RedHatAI/North-Mini-Code-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RedHatAI/North-Mini-Code-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RedHatAI/North-Mini-Code-1.0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RedHatAI/North-Mini-Code-1.0") model = AutoModelForCausalLM.from_pretrained("RedHatAI/North-Mini-Code-1.0") 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 RedHatAI/North-Mini-Code-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RedHatAI/North-Mini-Code-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RedHatAI/North-Mini-Code-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RedHatAI/North-Mini-Code-1.0
- SGLang
How to use RedHatAI/North-Mini-Code-1.0 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 "RedHatAI/North-Mini-Code-1.0" \ --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": "RedHatAI/North-Mini-Code-1.0", "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 "RedHatAI/North-Mini-Code-1.0" \ --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": "RedHatAI/North-Mini-Code-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RedHatAI/North-Mini-Code-1.0 with Docker Model Runner:
docker model run hf.co/RedHatAI/North-Mini-Code-1.0
Commit ·
d888162
0
Parent(s):
Duplicate from CohereLabs/North-Mini-Code-1.0
Browse filesCo-authored-by: Alejandro Rodriguez <alexrs@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +36 -0
- README.md +277 -0
- chat_template.jinja +263 -0
- config.json +94 -0
- generation_config.json +7 -0
- model-00001-of-00049.safetensors +3 -0
- model-00002-of-00049.safetensors +3 -0
- model-00003-of-00049.safetensors +3 -0
- model-00004-of-00049.safetensors +3 -0
- model-00005-of-00049.safetensors +3 -0
- model-00006-of-00049.safetensors +3 -0
- model-00007-of-00049.safetensors +3 -0
- model-00008-of-00049.safetensors +3 -0
- model-00009-of-00049.safetensors +3 -0
- model-00010-of-00049.safetensors +3 -0
- model-00011-of-00049.safetensors +3 -0
- model-00012-of-00049.safetensors +3 -0
- model-00013-of-00049.safetensors +3 -0
- model-00014-of-00049.safetensors +3 -0
- model-00015-of-00049.safetensors +3 -0
- model-00016-of-00049.safetensors +3 -0
- model-00017-of-00049.safetensors +3 -0
- model-00018-of-00049.safetensors +3 -0
- model-00019-of-00049.safetensors +3 -0
- model-00020-of-00049.safetensors +3 -0
- model-00021-of-00049.safetensors +3 -0
- model-00022-of-00049.safetensors +3 -0
- model-00023-of-00049.safetensors +3 -0
- model-00024-of-00049.safetensors +3 -0
- model-00025-of-00049.safetensors +3 -0
- model-00026-of-00049.safetensors +3 -0
- model-00027-of-00049.safetensors +3 -0
- model-00028-of-00049.safetensors +3 -0
- model-00029-of-00049.safetensors +3 -0
- model-00030-of-00049.safetensors +3 -0
- model-00031-of-00049.safetensors +3 -0
- model-00032-of-00049.safetensors +3 -0
- model-00033-of-00049.safetensors +3 -0
- model-00034-of-00049.safetensors +3 -0
- model-00035-of-00049.safetensors +3 -0
- model-00036-of-00049.safetensors +3 -0
- model-00037-of-00049.safetensors +3 -0
- model-00038-of-00049.safetensors +3 -0
- model-00039-of-00049.safetensors +3 -0
- model-00040-of-00049.safetensors +3 -0
- model-00041-of-00049.safetensors +3 -0
- model-00042-of-00049.safetensors +3 -0
- model-00043-of-00049.safetensors +3 -0
- model-00044-of-00049.safetensors +3 -0
- model-00045-of-00049.safetensors +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
inference: false
|
| 3 |
+
library_name: transformers
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- conversational
|
| 7 |
+
- chat
|
| 8 |
+
- code
|
| 9 |
+
- agent
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# **Model Card for North Mini Code**
|
| 13 |
+
|
| 14 |
+
## **Model Summary**
|
| 15 |
+
|
| 16 |
+
North Mini Code is an open weights research release of a 30B-A3B parameter model optimized for code generation, agentic software engineering, and terminal tasks.
|
| 17 |
+
|
| 18 |
+
Developed by: [Cohere](https://cohere.com/) and [Cohere Labs](https://cohere.com/research)
|
| 19 |
+
|
| 20 |
+
* Point of Contact: [**Cohere Labs**](https://cohere.com/research)
|
| 21 |
+
* License: Apache 2.0
|
| 22 |
+
* Model: North Mini Code
|
| 23 |
+
* Model Size: 30B total; 3B active
|
| 24 |
+
* Context length: 256K & 64K max output
|
| 25 |
+
|
| 26 |
+
For more details about this model, please check out our [blog post](https://huggingface.co/blog/CohereLabs/introducing-north-mini-code).
|
| 27 |
+
|
| 28 |
+
**Try North Mini Code**
|
| 29 |
+
|
| 30 |
+
You can try out North Mini Code before downloading the weights in OpenCode and our hosted [Hugging Face Space](https://huggingface.co/spaces/CohereLabs/North-Mini-Code-1.0).
|
| 31 |
+
|
| 32 |
+
**Evaluation**
|
| 33 |
+
|
| 34 |
+

|
| 35 |
+
|
| 36 |
+
<details>
|
| 37 |
+
<summary><span style="font-size: 80%;"><b>Benchmarking Methodology [CLICK TO EXPAND]</span></b></summary>
|
| 38 |
+
|
| 39 |
+
- <span style="font-size: 80%;">We used SWE-Bench Verified, SWE-Bench Pro, Terminal-Bench v2, and Terminal-Bench Hard to benchmark North Mini Code's agentic coding capabilities. For evaluation harnesses, we used the Swe-Agent harness v1.1.0 for SWE-Bench, and a simple ReAct harness employing a single terminal-use tool based on Harbor's Tmux session implementation for Terminal-Bench v2. For Terminal Bench Hard, we directly used Terminus-2, following the same methodology as the Artificial Analysis Intelligence Index to compare North-Mini-Code-1.0 with the other models. Additionally, we used SciCode and LiveCodeBench v6 as complex code-generation benchmarks outside of tool use.</span>
|
| 40 |
+
- <span style="font-size: 80%;">We run each benchmark with 3 different seeds and report the average benchmark performance, using temperature=1.0 and top\_p=0.95. We used publicly reported scores for competitor models, either from original reports or the Artificial Analysis Intelligence Index, where available. Additionally, Gemma4’s scores for agentic coding tasks were reported by [Qwen team](https://qwen.ai/blog?id=qwen3.6-35b-a3b). For benchmark results that any public report is missing, denoted by (\*) in the figure, we run them internally using the recommended model configuration.</span>
|
| 41 |
+
</details>
|
| 42 |
+
|
| 43 |
+
**Usage**
|
| 44 |
+
|
| 45 |
+
Please install transformers from the source repository that includes the necessary changes for this model. We recommend using the following set of sampling parameters for generation: \`temperature=1.0\`, \`top\_p=0.95\`.
|
| 46 |
+
|
| 47 |
+
```py
|
| 48 |
+
# pip install transformers
|
| 49 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 50 |
+
|
| 51 |
+
model_id = "CohereLabs/North-Mini-Code-1.0"
|
| 52 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 53 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 54 |
+
|
| 55 |
+
prompt = "Write a python program to check if a string is a palindrome or not."
|
| 56 |
+
|
| 57 |
+
# Format message with the North-Mini-Code-1.0 chat template
|
| 58 |
+
messages = [{"role": "user", "content": prompt}]
|
| 59 |
+
input_ids = tokenizer.apply_chat_template(
|
| 60 |
+
messages,
|
| 61 |
+
tokenize=True,
|
| 62 |
+
add_generation_prompt=True,
|
| 63 |
+
return_tensors="pt",
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
gen_tokens = model.generate(
|
| 67 |
+
**input_ids,
|
| 68 |
+
max_new_tokens=1024,
|
| 69 |
+
do_sample=True,
|
| 70 |
+
temperature=1.0,
|
| 71 |
+
top_p=0.95
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
gen_text = tokenizer.decode(gen_tokens[0])
|
| 75 |
+
print(gen_text)
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
You can also use the model directly using transformers `pipeline` abstraction:
|
| 79 |
+
|
| 80 |
+
```py
|
| 81 |
+
from transformers import pipeline
|
| 82 |
+
import torch
|
| 83 |
+
|
| 84 |
+
model_id = "CohereLabs/North-Mini-Code-1.0"
|
| 85 |
+
|
| 86 |
+
prompt = """Given a list of unique words each of size k and an n sized word, w, where n is a multiple of k,
|
| 87 |
+
Write a program in python to determine the number of unique combinations of words in the list that can be concatenated to form an anagram of the word w.
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
pipe = pipeline(
|
| 91 |
+
"text-generation",
|
| 92 |
+
model=model_id,
|
| 93 |
+
torch_dtype="auto",
|
| 94 |
+
device_map="auto",
|
| 95 |
+
)
|
| 96 |
+
|
| 97 |
+
messages = [
|
| 98 |
+
{"role": "user", "content": f"{prompt}"},
|
| 99 |
+
]
|
| 100 |
+
|
| 101 |
+
text = tokenizer.apply_chat_template(
|
| 102 |
+
messages,
|
| 103 |
+
tokenize=False,
|
| 104 |
+
add_generation_prompt=True,
|
| 105 |
+
)
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
outputs = pipe(
|
| 109 |
+
messages,
|
| 110 |
+
max_new_tokens=1024,
|
| 111 |
+
do_sample=True,
|
| 112 |
+
temperature=1.0,
|
| 113 |
+
top_p=0.95
|
| 114 |
+
|
| 115 |
+
)
|
| 116 |
+
|
| 117 |
+
print(outputs[0]["generated_text"][-1])
|
| 118 |
+
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
## **Model Details**
|
| 122 |
+
|
| 123 |
+
**Input**: Text only.
|
| 124 |
+
|
| 125 |
+
**Output**: Model generates text.
|
| 126 |
+
|
| 127 |
+
**Model Architecture**: North-Mini-Code-1.0 is a decoder-only Transformer-based sparse Mixture-of-Experts model. It uses an efficient attention implementation, interleaved between sliding-window attention with RoPE and global attention with no positional embeddings, in a 3:1 ratio. The feed-forward block is an MoE block with 128 experts, of which 8 are activated per token. Each expert block is an FFN block with SwiGLU activation. The router applies a sigmoid activation function to the logits before the top-k selection. We also use a single dense layer before the sparse layers. North-Mini-Code-1.0 was post-trained using a two-stage cascaded supervised fine-tuning (SFT) followed by reinforcement learning with verifiable rewards (RLVR), focusing on agentic coding. For more technical details, please check out our [blog post](https://huggingface.co/blog/CohereLabs/introducing-north-mini-code).
|
| 128 |
+
|
| 129 |
+
**Context Length:** North-Mini-Code-1.0 supports a context length of 256K & 64K output length.
|
| 130 |
+
|
| 131 |
+
### **Tool Use Capabilities:**
|
| 132 |
+
|
| 133 |
+
North-Mini-Code-1.0 has been specifically trained with tool-use capabilities for agentic coding.
|
| 134 |
+
|
| 135 |
+
Tool use with North-Mini-Code-1.0 is supported through [chat templates](https://huggingface.co/docs/transformers/main/en/chat_templating#advanced-tool-use--function-calling) in Transformers. We recommend providing tool descriptions using JSON schema.
|
| 136 |
+
|
| 137 |
+
**Tool Use Example \[CLICK TO EXPAND\]**
|
| 138 |
+
|
| 139 |
+
```py
|
| 140 |
+
# Define tools
|
| 141 |
+
tools = [{
|
| 142 |
+
"type": "function",
|
| 143 |
+
"function": {
|
| 144 |
+
"name": "bash",
|
| 145 |
+
"description": "Execute a bash command in the terminal.",
|
| 146 |
+
"parameters": {
|
| 147 |
+
"type": "object",
|
| 148 |
+
"properties": {
|
| 149 |
+
"command": {
|
| 150 |
+
"description": "The bash command to execute.",
|
| 151 |
+
"type": "string"
|
| 152 |
+
}
|
| 153 |
+
},
|
| 154 |
+
"required": ["command"]
|
| 155 |
+
},
|
| 156 |
+
}
|
| 157 |
+
}]
|
| 158 |
+
|
| 159 |
+
# Define conversation input
|
| 160 |
+
conversation = [{"role": "user", "content": "Find out if there is any json file in this folder"}]
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
# Get the Tool Use prompt
|
| 164 |
+
input_prompt = tokenizer.apply_chat_template(conversation=conversation, tools=tools, tokenize=False, add_generation_prompt=True, return_tensors="pt")
|
| 165 |
+
|
| 166 |
+
# Tokenize the prompt
|
| 167 |
+
input_ids = tokenizer(input_prompt, return_tensors="pt")
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
You can then generate from this input as normal.
|
| 171 |
+
|
| 172 |
+
North Mini Code, similarly as all the other Cohere agent models released to date, supports [interleaved thinking](https://docs.vllm.ai/en/latest/features/interleaved_thinking/) and works best when turned on. You’re strongly encouraged to pass on all the model-generated thinking contents to future agentic steps, and chat turns for the best model performance. Please refer to the linked vllm doc and see how it’s done.
|
| 173 |
+
|
| 174 |
+
If the model generates thinking content and tool calls, you should add both of them to the chat history like so:
|
| 175 |
+
|
| 176 |
+
```py
|
| 177 |
+
# Pass on the tool_call and thinking
|
| 178 |
+
tool_call = {"name": "bash", "arguments": {"command": "ls -al"}}
|
| 179 |
+
reasoning = "The user wants to find if there are any JSON files in the current folder. I should use the `ls` command to list files and then check if there are any JSON files (files ending with .json). Let me first list the files in the current directory."
|
| 180 |
+
|
| 181 |
+
conversation.append({"role": "assistant", "tool_calls": [{"id": "0", "type": "function", "function": tool_call}], "reasoning": reasoning})
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
and then call the tool and append the result, as a dictionary, with the tool role, like so:
|
| 185 |
+
|
| 186 |
+
```py
|
| 187 |
+
# This needs to be a dictionary
|
| 188 |
+
tool_result = {"stdout": "test.json\ntest.py", "return_code": "0"}
|
| 189 |
+
|
| 190 |
+
# Append tool results
|
| 191 |
+
conversation.append({"role": "tool", "tool_call_id": "0", "content": tool_result})
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
After that, you can `generate()` again to let the model use the tool result in the chat.
|
| 195 |
+
|
| 196 |
+
Note that this was a very brief introduction to tool calling \- for more information the Transformers [tool use documentation](https://huggingface.co/docs/transformers/main/chat_templating#advanced-tool-use--function-calling).
|
| 197 |
+
|
| 198 |
+
### **vLLM**
|
| 199 |
+
|
| 200 |
+
You can also run the model in vLLM. Please use vLLM main for North Mini Code until a new release is available, and accurate response parsing also requires installing Cohere’s melody library.
|
| 201 |
+
|
| 202 |
+
```shell
|
| 203 |
+
uv pip install "git+https://github.com/vllm-project/vllm.git"
|
| 204 |
+
uv pip install cohere_melody>=0.9.0
|
| 205 |
+
```
|
| 206 |
+
|
| 207 |
+
Then the vllm server can be started with the following command:
|
| 208 |
+
|
| 209 |
+
```shell
|
| 210 |
+
vllm serve CohereLabs/North-Mini-Code-1.0 \
|
| 211 |
+
-tp 2 \
|
| 212 |
+
--max-model-len 320000 \
|
| 213 |
+
--tool-call-parser cohere_command4 \
|
| 214 |
+
--reasoning-parser cohere_command4 \
|
| 215 |
+
--enable-auto-tool-choice
|
| 216 |
+
```
|
| 217 |
+
|
| 218 |
+
**Use locally deployed North Mini Code in OpenCode:**
|
| 219 |
+
|
| 220 |
+
Please use OpenCode main branch until a new release is available.
|
| 221 |
+
|
| 222 |
+
```shell
|
| 223 |
+
# Example commands to install on linux
|
| 224 |
+
git clone https://github.com/anomalyco/opencode.gitcd opencode
|
| 225 |
+
|
| 226 |
+
# Install Bun
|
| 227 |
+
curl -fsSL https://bun.sh/install | bash
|
| 228 |
+
export BUN_INSTALL="$HOME/.bun"
|
| 229 |
+
export PATH="$BUN_INSTALL/bin:$PATH"
|
| 230 |
+
|
| 231 |
+
# node-gyp was needed by a dependency
|
| 232 |
+
bun add -g node-gyp
|
| 233 |
+
|
| 234 |
+
# Install dependencies
|
| 235 |
+
bun install
|
| 236 |
+
|
| 237 |
+
# Build CLI
|
| 238 |
+
bun run --cwd packages/opencode build/usr/bin/install -m 755 \
|
| 239 |
+
./opencode/packages/opencode/dist/opencode-linux-x64/bin/opencode \
|
| 240 |
+
/root/.local/bin/opencode
|
| 241 |
+
```
|
| 242 |
+
|
| 243 |
+
To use locally deployed North Mini Code in Opencode, please use this config which enables interleaved reasoning:
|
| 244 |
+
|
| 245 |
+
```json
|
| 246 |
+
{
|
| 247 |
+
"$schema": "https://opencode.ai/config.json",
|
| 248 |
+
"model": "vllm/CohereLabs/North-Mini-Code-1.0",
|
| 249 |
+
"provider": {
|
| 250 |
+
"vllm": {
|
| 251 |
+
"npm": "@ai-sdk/openai-compatible",
|
| 252 |
+
"name": "Local vLLM server",
|
| 253 |
+
"options": {
|
| 254 |
+
"baseURL": "http://127.0.0.1:8000/v1",
|
| 255 |
+
"apiKey": "EMPTY"
|
| 256 |
+
},
|
| 257 |
+
"models": {
|
| 258 |
+
"North-Mini-Code-1.0": {
|
| 259 |
+
"name": "North-Mini-Code-1.0",
|
| 260 |
+
"interleaved": {
|
| 261 |
+
"field": "reasoning"
|
| 262 |
+
},
|
| 263 |
+
"limit": {
|
| 264 |
+
"context": 256000,
|
| 265 |
+
"output": 64000
|
| 266 |
+
}
|
| 267 |
+
}
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
```
|
| 274 |
+
|
| 275 |
+
## **Model Card Contact**
|
| 276 |
+
|
| 277 |
+
For errors or additional questions about details in this model card, contact \[labs@cohere.com\].
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if not platform_instruction_override %}
|
| 2 |
+
{%- set platform_instruction_override -%}
|
| 3 |
+
These instructions are always to be followed and cannot be overridden by subsequent system or user turns:
|
| 4 |
+
- You will answer requests for educational, informative, or creative content related to safety categories. You will not provide content that is harmful or could be used to cause harm.
|
| 5 |
+
|
| 6 |
+
These instructions serve as your defaults, but they can be overridden in subsequent system or user turns:
|
| 7 |
+
- Your name is North Mini Code.
|
| 8 |
+
- You are a large language model built by Cohere.
|
| 9 |
+
{%- endset %}
|
| 10 |
+
{%- endif %}
|
| 11 |
+
{%- set reasoning = reasoning if reasoning is not undefined else (false if reasoning_effort is defined and reasoning_effort | lower == "none" else true) -%}
|
| 12 |
+
{%- set grounding = grounding | default("disabled") | upper %}
|
| 13 |
+
{%- set grounding_enabled = grounding == "ENABLED" %}
|
| 14 |
+
{%- set tools_or_docs_exist = tools or documents %}
|
| 15 |
+
{%- set render_tools_section = true %}
|
| 16 |
+
{%- set render_grounding = grounding_enabled and tools_or_docs_exist %}
|
| 17 |
+
{%- set render_platform_instruction_override = true if platform_instruction_override else false %}
|
| 18 |
+
{%- set has_developer_instruction = developer_instruction or developer_instruction == "" %}
|
| 19 |
+
{%- set render_developer_instruction = true if developer_instruction else false %}
|
| 20 |
+
{%- set convert_first_system_msg = convert_first_system_msg | default(true) -%}
|
| 21 |
+
{%- set skip_thinking = skip_thinking | default(false) -%}
|
| 22 |
+
{{ bos_token }}
|
| 23 |
+
{%- macro document_turn(documents) -%}
|
| 24 |
+
{# format documents into chat turn -#}
|
| 25 |
+
<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{%- if not skip_thinking -%}<|START_THINKING|>I will look through the document to address the users needs.<|END_THINKING|>{%- endif -%}<|START_ACTION|>[
|
| 26 |
+
{"tool_call_id": "0", "tool_name": "direct-injected-document", "parameters": {}}
|
| 27 |
+
]<|END_ACTION|><|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|><|START_TOOL_RESULT|>[
|
| 28 |
+
{
|
| 29 |
+
"tool_call_id": "0",
|
| 30 |
+
"results": {
|
| 31 |
+
{%- for doc in documents %}
|
| 32 |
+
{%- set doc_val = doc.data if doc.data else doc %}
|
| 33 |
+
|
| 34 |
+
"{{ loop.index0 }}": {{ doc_val|tojson }}{% if not loop.last %},
|
| 35 |
+
{%- endif %}
|
| 36 |
+
{%- endfor %}
|
| 37 |
+
|
| 38 |
+
},
|
| 39 |
+
"is_error": null
|
| 40 |
+
}
|
| 41 |
+
]<|END_TOOL_RESULT|><|END_OF_TURN_TOKEN|>{%- endmacro %}
|
| 42 |
+
{%- macro tool_call_id_to_int(messages, tool_call_id) %}
|
| 43 |
+
{%- if regen_tool_call_ids -%}
|
| 44 |
+
{%- set counter = namespace(value=0) %}
|
| 45 |
+
{%- set tool_call_id_seen = namespace(value=false) %}
|
| 46 |
+
{%- for msg in messages %}
|
| 47 |
+
{%- if msg.tool_calls %}
|
| 48 |
+
{%- for tool_call in msg.tool_calls %}
|
| 49 |
+
{%- if tool_call.id == tool_call_id and not tool_call_id_seen.value -%}
|
| 50 |
+
{{ counter.value }}
|
| 51 |
+
{%- set tool_call_id_seen.value = true %}
|
| 52 |
+
{%- endif %}
|
| 53 |
+
{%- set counter.value = counter.value + 1 %}
|
| 54 |
+
{%- endfor %}
|
| 55 |
+
{%- endif %}
|
| 56 |
+
{%- endfor %}
|
| 57 |
+
{%- else -%}
|
| 58 |
+
{{ tool_call_id }}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{%- endmacro %}
|
| 61 |
+
{%- macro format_tool_message(messages, tool_msg) -%}
|
| 62 |
+
{#- format tool message #}{
|
| 63 |
+
"tool_call_id": "{{ tool_call_id_to_int(messages, tool_msg.tool_call_id) }}",
|
| 64 |
+
"results": {
|
| 65 |
+
{%- if tool_msg.content is mapping or tool_msg.content is string %}
|
| 66 |
+
|
| 67 |
+
{% if tool_msg.content is string -%}
|
| 68 |
+
{%- set text_wrapper = {"content": tool_msg.content} -%}
|
| 69 |
+
{%- else -%}
|
| 70 |
+
{%- set text_wrapper = tool_msg.content -%}
|
| 71 |
+
{%- endif %}
|
| 72 |
+
"0": {{ text_wrapper|tojson }}
|
| 73 |
+
{%- else %}
|
| 74 |
+
{%- for content in tool_msg.content %}
|
| 75 |
+
|
| 76 |
+
"{{ loop.index0 }}": {{ print_tool_content(content) }}{% if not loop.last %},{% endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- endif %}
|
| 79 |
+
|
| 80 |
+
},
|
| 81 |
+
"is_error": null
|
| 82 |
+
}
|
| 83 |
+
{%- endmacro -%}
|
| 84 |
+
{%- macro print_tool_content(item) %}
|
| 85 |
+
{%- if item.type|lower == "text" -%}
|
| 86 |
+
{%- set text_wrapper = {"content": item.text} -%}
|
| 87 |
+
{{ text_wrapper|tojson }}
|
| 88 |
+
{%- elif item.type|lower == "document" and item.document and "data" in item.document -%}
|
| 89 |
+
{{ item.document.data|tojson }}
|
| 90 |
+
{%- else -%}
|
| 91 |
+
{{ item|tojson }}
|
| 92 |
+
{%- endif -%}
|
| 93 |
+
{%- endmacro %}
|
| 94 |
+
{%- macro print_msg(msg) %}
|
| 95 |
+
{%- if msg is string -%}
|
| 96 |
+
<|START_TEXT|>{{ msg }}<|END_TEXT|>
|
| 97 |
+
{%- elif msg.content is string -%}
|
| 98 |
+
<|START_TEXT|>{{ msg.content }}<|END_TEXT|>
|
| 99 |
+
{%- else %}
|
| 100 |
+
{%- set last_was_text = namespace(value=false) %}
|
| 101 |
+
{%- for content in msg.content %}
|
| 102 |
+
{%- if content.type|lower == "text" -%}
|
| 103 |
+
{%- if not last_was_text.value -%}
|
| 104 |
+
<|START_TEXT|>
|
| 105 |
+
{%- endif -%}
|
| 106 |
+
{{ content.text }}
|
| 107 |
+
{%- if loop.last -%}
|
| 108 |
+
<|END_TEXT|>
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- set last_was_text.value = true -%}
|
| 111 |
+
{%- else -%}
|
| 112 |
+
{%- if last_was_text.value -%}
|
| 113 |
+
<|END_TEXT|>
|
| 114 |
+
{%- endif -%}
|
| 115 |
+
{%- set last_was_text.value = false -%}
|
| 116 |
+
{%- endif -%}
|
| 117 |
+
{%- if content.type|lower == "image" -%}
|
| 118 |
+
{%- if content.data -%}
|
| 119 |
+
{{ content.data }}
|
| 120 |
+
{%- else -%}
|
| 121 |
+
<|IMG_PATCH|>
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
{%- endif -%}
|
| 124 |
+
{%- endfor %}
|
| 125 |
+
{%- endif %}
|
| 126 |
+
{%- endmacro %}
|
| 127 |
+
{%- macro print_thinking(msg) %}
|
| 128 |
+
{%- if msg.reasoning -%}
|
| 129 |
+
{{ msg.reasoning }}
|
| 130 |
+
{%- elif msg.reasoning_content -%}
|
| 131 |
+
{{ msg.reasoning_content }}
|
| 132 |
+
{%- elif msg.thinking -%}
|
| 133 |
+
{{ msg.thinking }}
|
| 134 |
+
{%- elif msg.content and msg.content[0].thinking -%}
|
| 135 |
+
{{ msg.content[0].thinking }}
|
| 136 |
+
{%- endif %}
|
| 137 |
+
{%- endmacro %}
|
| 138 |
+
{%- if messages and messages[0]['role']|lower == 'system' and not has_developer_instruction and convert_first_system_msg %}{%- set developer_instruction = messages[0] %}{%- set render_developer_instruction = true %}{%- set initial_instruction_message = true %}{% endif %}
|
| 139 |
+
{%- set json_object = true if response_format and response_format.type == "json_object" else false %}
|
| 140 |
+
{%- set json_schema = (response_format.json_schema or response_format.schema) if response_format %}
|
| 141 |
+
{%- set json_mode = json_object or json_schema %}
|
| 142 |
+
{%- set tool_idx = namespace(value=0) %}
|
| 143 |
+
{%- set tool_ids_seen = namespace(value=[]) %}
|
| 144 |
+
{%- set regen_tool_call_ids = regen_tool_call_ids | default(true) -%}
|
| 145 |
+
{%- set sent_documents = namespace(value=false) -%}
|
| 146 |
+
|
| 147 |
+
{%- if render_tools_section or render_platform_instruction_override or render_grounding or json_mode -%}
|
| 148 |
+
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|><|START_TEXT|>
|
| 149 |
+
{%- elif not render_developer_instruction -%}
|
| 150 |
+
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>
|
| 151 |
+
{%- endif %}
|
| 152 |
+
|
| 153 |
+
{%- set rendered_platform_turn_chunk = false %}
|
| 154 |
+
|
| 155 |
+
{%- if render_platform_instruction_override -%}
|
| 156 |
+
{{ platform_instruction_override }}
|
| 157 |
+
{% set rendered_platform_turn_chunk = true %}
|
| 158 |
+
{%- else %}
|
| 159 |
+
{%- endif %}
|
| 160 |
+
|
| 161 |
+
{%- if render_grounding -%}
|
| 162 |
+
{%- if rendered_platform_turn_chunk %}
|
| 163 |
+
|
| 164 |
+
{% endif -%}
|
| 165 |
+
Note that both your responses and reflections can be grounded. Grounding means you associate pieces of texts (called "spans") with those specific tool results that support them (called "sources"). And you use a pair of tags "<co>" and "</co>" to indicate when a span can be grounded onto a list of sources, listing them out in the closing tag. Sources from the same tool call are grouped together and listed as "{tool_call_id}:[{list of result indices}]", before they are joined together by ",". E.g., "<co>span</co: 0:[1,2],1:[0]>" means that "span" is supported by result 1 and 2 from "tool_call_id=0" as well as result 0 from "tool_call_id=1".
|
| 166 |
+
{% set rendered_platform_turn_chunk = true %}
|
| 167 |
+
{%- endif %}
|
| 168 |
+
|
| 169 |
+
{%- if render_tools_section %}
|
| 170 |
+
{%- if rendered_platform_turn_chunk %}
|
| 171 |
+
|
| 172 |
+
{% endif %}
|
| 173 |
+
# Available Tools
|
| 174 |
+
```json
|
| 175 |
+
[
|
| 176 |
+
{% if tools_or_docs_exist %}
|
| 177 |
+
{%- if documents %}
|
| 178 |
+
{"name": "direct-injected-document", "description": "This is a special tool to directly inject user-uploaded documents into the chat as additional context. DO NOT use this tool by yourself!", "parameters": {"type": "object", "properties": {}, "required": []}, "responses": {"200": {"description": "Successfully returned a list of chunked text snippets from the directly uploaded documents.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "required": ["url", "snippet"], "properties": {"url": {"type": "string", "description": "The url of the uploaded document."}, "snippet": {"type": "string", "description": "The text snippet for the returned document chunk."}}}}}}}}}
|
| 179 |
+
{%- if tools %},
|
| 180 |
+
{% else %}
|
| 181 |
+
|
| 182 |
+
{% endif %}
|
| 183 |
+
{%- endif %}
|
| 184 |
+
{%- for tool in tools %}
|
| 185 |
+
{"name": "{{ tool['function']['name'] }}", "description": "{{ tool['function']['description'] }}", "parameters": {{ tool['function']['parameters']|tojson }}, "responses": null}
|
| 186 |
+
{%- if not loop.last %},{% endif %}
|
| 187 |
+
|
| 188 |
+
{% endfor %}
|
| 189 |
+
{%- else %}
|
| 190 |
+
|
| 191 |
+
{% endif %}
|
| 192 |
+
]
|
| 193 |
+
```
|
| 194 |
+
{%- set rendered_platform_turn_chunk = true %}
|
| 195 |
+
{%- endif -%}
|
| 196 |
+
|
| 197 |
+
{%- if json_mode -%}
|
| 198 |
+
{%- if rendered_platform_turn_chunk %}
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
{% endif -%}
|
| 202 |
+
When generating JSON objects, do not generate block markers. Generate an object directly without prefixing with ```json. Return only the JSON and nothing else.
|
| 203 |
+
{%- if json_schema %}
|
| 204 |
+
|
| 205 |
+
Your output should adhere to the following json schema:
|
| 206 |
+
{{ json_schema }}
|
| 207 |
+
{%- endif -%}
|
| 208 |
+
{%- set rendered_platform_turn_chunk = true %}
|
| 209 |
+
{%- endif %}
|
| 210 |
+
{%- if rendered_platform_turn_chunk -%}
|
| 211 |
+
<|END_TEXT|><|END_OF_TURN_TOKEN|>
|
| 212 |
+
{%- elif not render_developer_instruction -%}
|
| 213 |
+
<|END_OF_TURN_TOKEN|>
|
| 214 |
+
{%- endif %}
|
| 215 |
+
{%- if render_developer_instruction -%}
|
| 216 |
+
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{ print_msg(developer_instruction) }}<|END_OF_TURN_TOKEN|>
|
| 217 |
+
{%- endif %}
|
| 218 |
+
{%- for message in messages %}
|
| 219 |
+
{%- set msg_role_downcased = message.role | lower %}
|
| 220 |
+
{%- if msg_role_downcased == 'system' and (not (loop.first and initial_instruction_message)) -%}
|
| 221 |
+
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{ print_msg(message) }}<|END_OF_TURN_TOKEN|>
|
| 222 |
+
{%- elif msg_role_downcased == 'user' -%}
|
| 223 |
+
<|START_OF_TURN_TOKEN|><|USER_TOKEN|>{{ print_msg(message) }}<|END_OF_TURN_TOKEN|>
|
| 224 |
+
{%- if documents and not sent_documents.value %}{%- set sent_documents.value = true %}{% set tool_idx.value = tool_idx.value + 1 %}{{ document_turn(documents) }}{% endif %}
|
| 225 |
+
{%- elif msg_role_downcased == 'assistant' or msg_role_downcased == 'chatbot' -%}
|
| 226 |
+
<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
|
| 227 |
+
{%- if message.tool_calls %}
|
| 228 |
+
{% if not skip_thinking %}
|
| 229 |
+
{% if message.tool_plan -%}
|
| 230 |
+
<|START_THINKING|>{{ message.tool_plan }}<|END_THINKING|>
|
| 231 |
+
{%- elif message.reasoning or message.reasoning_content or message.thinking or (message.content and message.content[0].type == "thinking") -%}
|
| 232 |
+
<|START_THINKING|>{{ print_thinking(message) }}<|END_THINKING|>
|
| 233 |
+
{%- endif %}
|
| 234 |
+
{%- endif %}<|START_ACTION|>[
|
| 235 |
+
{%- for tc in message.tool_calls %}
|
| 236 |
+
|
| 237 |
+
{"tool_call_id": "{%- if regen_tool_call_ids -%}{{ tool_idx.value }}{%- else -%}{{ tc.id }}{%- endif -%}", "tool_name": "{{ tc['function']['name'] }}", "parameters": {{ tc['function']['arguments']|tojson }}}{% if not loop.last %},{% endif %}
|
| 238 |
+
{%- set tool_idx.value = tool_idx.value + 1 %}
|
| 239 |
+
{%- endfor %}
|
| 240 |
+
|
| 241 |
+
]<|END_ACTION|><|END_OF_TURN_TOKEN|>
|
| 242 |
+
{%- else -%}
|
| 243 |
+
{% if (message.reasoning or message.reasoning_content or message.thinking or (message.content and message.content[0].type == "thinking")) and not skip_thinking -%}
|
| 244 |
+
<|START_THINKING|>{{ print_thinking(message) }}<|END_THINKING|>
|
| 245 |
+
{%- endif -%}
|
| 246 |
+
{{ print_msg(message) }}<|END_OF_TURN_TOKEN|>
|
| 247 |
+
{%- endif %}
|
| 248 |
+
{%- elif msg_role_downcased == 'tool' and message.tool_call_id not in tool_ids_seen.value -%}
|
| 249 |
+
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|><|START_TOOL_RESULT|>[
|
| 250 |
+
{{ format_tool_message(messages, message) }}
|
| 251 |
+
{%- for msg in messages[loop.index0 + 1:] %}
|
| 252 |
+
|
| 253 |
+
{%- if msg.role | lower == 'tool' %},
|
| 254 |
+
{{ format_tool_message(messages, msg) }}
|
| 255 |
+
{%- set tool_ids_seen.value = tool_ids_seen.value + [msg.tool_call_id] %}
|
| 256 |
+
{%- else %}
|
| 257 |
+
{%- break %}
|
| 258 |
+
{%- endif %}
|
| 259 |
+
{%- endfor %}
|
| 260 |
+
|
| 261 |
+
]<|END_TOOL_RESULT|><|END_OF_TURN_TOKEN|>
|
| 262 |
+
{%- endif %}
|
| 263 |
+
{%- endfor %}{%- if add_generation_prompt -%}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{% if reasoning %}<|START_THINKING|>{% else %}<|START_THINKING|><|END_THINKING|>{% endif %}{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Cohere2MoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 2,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": 255001,
|
| 10 |
+
"expert_selection_fn": "sigmoid",
|
| 11 |
+
"first_k_dense_replace": 1,
|
| 12 |
+
"head_dim": 128,
|
| 13 |
+
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 2048,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 768,
|
| 17 |
+
"layer_norm_eps": 1e-05,
|
| 18 |
+
"layer_types": [
|
| 19 |
+
"full_attention",
|
| 20 |
+
"sliding_attention",
|
| 21 |
+
"sliding_attention",
|
| 22 |
+
"sliding_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"sliding_attention",
|
| 25 |
+
"sliding_attention",
|
| 26 |
+
"sliding_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"sliding_attention",
|
| 29 |
+
"sliding_attention",
|
| 30 |
+
"sliding_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"sliding_attention",
|
| 33 |
+
"sliding_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"sliding_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"sliding_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"sliding_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"sliding_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"sliding_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"sliding_attention",
|
| 58 |
+
"sliding_attention",
|
| 59 |
+
"full_attention",
|
| 60 |
+
"sliding_attention",
|
| 61 |
+
"sliding_attention",
|
| 62 |
+
"sliding_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"sliding_attention",
|
| 65 |
+
"sliding_attention",
|
| 66 |
+
"sliding_attention",
|
| 67 |
+
"full_attention"
|
| 68 |
+
],
|
| 69 |
+
"logit_scale": 1.0,
|
| 70 |
+
"max_position_embeddings": 500000,
|
| 71 |
+
"model_type": "cohere2_moe",
|
| 72 |
+
"norm_topk_prob": false,
|
| 73 |
+
"num_attention_heads": 32,
|
| 74 |
+
"num_experts": 128,
|
| 75 |
+
"num_experts_per_tok": 8,
|
| 76 |
+
"num_hidden_layers": 49,
|
| 77 |
+
"num_key_value_heads": 4,
|
| 78 |
+
"num_shared_experts": 0,
|
| 79 |
+
"pad_token_id": 0,
|
| 80 |
+
"prefix_dense_intermediate_size": 3072,
|
| 81 |
+
"prefix_dense_sliding_window_pattern": 1,
|
| 82 |
+
"rms_norm_eps": 1e-06,
|
| 83 |
+
"rope_scaling": null,
|
| 84 |
+
"rope_theta": 50000,
|
| 85 |
+
"shared_expert_combination_strategy": "average",
|
| 86 |
+
"sliding_window": 4096,
|
| 87 |
+
"transformers_version": "5.8.0",
|
| 88 |
+
"use_cache": true,
|
| 89 |
+
"use_gated_activation": true,
|
| 90 |
+
"use_parallel_block": true,
|
| 91 |
+
"use_parallel_embedding": false,
|
| 92 |
+
"use_qk_norm": false,
|
| 93 |
+
"vocab_size": 262144
|
| 94 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"eos_token_id": 255001,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "5.8.0"
|
| 7 |
+
}
|
model-00001-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:daf5db63c754732e03e14b26538849b7197bde57ea460ba0d4766dbce3580b1a
|
| 3 |
+
size 1551917728
|
model-00002-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5d9bff761ec78593cad72fcfe7aebde3f70163c95efa75fa7fc423f644b86cb
|
| 3 |
+
size 1246284112
|
model-00003-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b671c07f138acef95d404dda93781627b0f3f7a2d2259ed4ffb89f44c9726876
|
| 3 |
+
size 1246284112
|
model-00004-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f41e8f7b6f6c92d9d3b9f8ec24c818a209faec3e622a9488dca6606650c5f425
|
| 3 |
+
size 1246284112
|
model-00005-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1871df2ad11ee44308868bd695131f1d5def63393bbb61cbc9fb55b8f107d8d
|
| 3 |
+
size 1246284112
|
model-00006-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f81ef1830dae4d595240fc020837ef3fed3a10534f86cf05d1e4ef7b0125da51
|
| 3 |
+
size 1246284112
|
model-00007-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7130aa7b1909219f8fd10d1ffd8425cada405803af7b094a69156d75091ace1f
|
| 3 |
+
size 1246284112
|
model-00008-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe7d7e6cb3a9b24f4201ae78383e4c106299df35556140a4c07c4ec469f488e7
|
| 3 |
+
size 1246284112
|
model-00009-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f86cc0caea81217f6c8a2abbe3c2794096604d2315aadc61263270128d758947
|
| 3 |
+
size 1246284112
|
model-00010-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21c67c397d924be28933705ec8fcd6654b44a2eacd8f03d66bcfa94f3779a941
|
| 3 |
+
size 1246284224
|
model-00011-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d3a888d096a129601d91f41027f091e07b3391cd1b08c42b1f7599aba4c353c
|
| 3 |
+
size 1246284504
|
model-00012-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05a94067a3eec7efd1aa660d0f2d19350316575c6d6f52581dbe241cc8ed572b
|
| 3 |
+
size 1246284504
|
model-00013-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87d74ef7874b916ed135f3dcd2fcf653812f6290aa085ddc3e29d4f071f3473f
|
| 3 |
+
size 1246284504
|
model-00014-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d9eb16fca0c9cd78f4927e88a72422d6b99b8cb25e4719c5acda8c947621f2c
|
| 3 |
+
size 1246284504
|
model-00015-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be753448f4ac5d463fdc45ec02f57e05f1ee3525c1167daab8e800065f072f09
|
| 3 |
+
size 1246284504
|
model-00016-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13d5b401feea5fa6da3124af8c1b61fbff5d6fa79d4b922adb251dccd00c818c
|
| 3 |
+
size 1246284504
|
model-00017-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89aeebcb158e91fe34b8955919ea8fc4dbdd37d8c9c18fa2dfacd76c553d449c
|
| 3 |
+
size 1246284504
|
model-00018-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb4ca39d3d2351c78e8b8024d70b05bcabe8e22e76cdaacc2117d325bf80c136
|
| 3 |
+
size 1246284504
|
model-00019-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1017aa5e2f763055ee0d148348eaac974bf627bfb99f5f4dda2cac21b9fae402
|
| 3 |
+
size 1246284504
|
model-00020-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:426e6255897d052a039f3b999380128a047283c8ee8fd3b43a9a9a862fd2a117
|
| 3 |
+
size 1246284504
|
model-00021-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dc523be4dd850416eaa8d8a8c626809fa584a11fa9be9610a45dff982f8fbd4
|
| 3 |
+
size 1246284504
|
model-00022-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e974a88ea136494fdfb40660e54e197029af5d3d76f58a1f6737fb3477a812f
|
| 3 |
+
size 1246284504
|
model-00023-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e41d9f44fe50c66a68ef87af9752072563778c4a419298a0f70bced6c72ddc59
|
| 3 |
+
size 1246284504
|
model-00024-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54a2c9ce6c85f673c86f2a6b11b61172ca5daaebf6db3a4d0dc10bdd2466931a
|
| 3 |
+
size 1246284504
|
model-00025-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49e286ee88f44373a255d66f5e520e99ecd6a19849df281f84a30e0e2d986932
|
| 3 |
+
size 1246284504
|
model-00026-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1609d888bda589cb6e67ecd43c059c28992ea3d381916c0d8b7487e2c9ec857
|
| 3 |
+
size 1246284504
|
model-00027-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da47d5a05d7f61b7d8444f2a32a1652fa28e1dbc81f6354142b38eaaee5743d9
|
| 3 |
+
size 1246284504
|
model-00028-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd8f75676b3f602402d2097d17a8eace621ffd22b377eae9f145601cfdb34f0c
|
| 3 |
+
size 1246284504
|
model-00029-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13dd955c39a112ed5c35a490d8e3401d9035a2ee1a125c58d84f0aaad4263d3d
|
| 3 |
+
size 1246284504
|
model-00030-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bbc0916666b923a459f3fb56b6aab8149514a4ca76d450bf535a17f2d7cfd8c
|
| 3 |
+
size 1246284504
|
model-00031-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8604df2469948ea906fb59457b83d951f5741f2f240a668060537256f3315265
|
| 3 |
+
size 1246284504
|
model-00032-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82302a2d64f8b75153c50726f0607bec8843de4f99cd7832056a83218c27f4a4
|
| 3 |
+
size 1246284504
|
model-00033-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b42d414b4c76150b1323c7c4e75602e858eeb5dce4e14ca3ddbb86da1dcad01d
|
| 3 |
+
size 1246284504
|
model-00034-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6174a45b75212900ea35f807a0081b434fe4af445c361a9e949790b7b62b7e9
|
| 3 |
+
size 1246284504
|
model-00035-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ccbd5bb133aa6cb606e7f0554dbdde1e1445749b796dbe72d86778c41fa0df62
|
| 3 |
+
size 1246284504
|
model-00036-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a07c475e1b1853850cb0c1d6684907b42e53462e605d5c21fb3b7fe676823949
|
| 3 |
+
size 1246284504
|
model-00037-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e611968a88df3890540a813c84d6360b7f0ed54e6f234505c4dce97492f3e96c
|
| 3 |
+
size 1246284504
|
model-00038-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f10178056c7ea33fc6e317f3c11575db671676ca5774fbed566e32b15da995b
|
| 3 |
+
size 1246284504
|
model-00039-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4297bb7a9e3d768c7f0d449502c1e2b342ffe75ed2e28471b0106ae7f5473258
|
| 3 |
+
size 1246284504
|
model-00040-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f8ea1e306c0c1308fadeab713092a6881af833d7a0f978297e3909e2d6966bf
|
| 3 |
+
size 1246284504
|
model-00041-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf6c810eca3813de45d3b2715c4952e262a8318891597552c4ef5cba90131b18
|
| 3 |
+
size 1246284504
|
model-00042-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21485ff6e878251a2159e261bb37093b90d404d173fdefba52be74f2fb468e69
|
| 3 |
+
size 1246284504
|
model-00043-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4841b1ca102234eeb50c77dcf2c2f31fa0af0c72e596c478ca48b61107ba138
|
| 3 |
+
size 1246284504
|
model-00044-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46c4a8fdd6dcee2f1fc462e9c99d904461d6aa42b3f2b02636e416fcd5407e97
|
| 3 |
+
size 1246284504
|
model-00045-of-00049.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bfc31f8f4a8f11fa116ac8b741c9563b42986de1b7d13e02bf47a68714a9a9d
|
| 3 |
+
size 1246284504
|