Text Generation
Transformers
English
qwen2
code-generation
python
fine-tuning
Qwen
tools
agent-framework
multi-agent
conversational
Eval Results (legacy)
Instructions to use my-ai-stack/Stack-2-9-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use my-ai-stack/Stack-2-9-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="my-ai-stack/Stack-2-9-finetuned") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("my-ai-stack/Stack-2-9-finetuned") model = AutoModelForCausalLM.from_pretrained("my-ai-stack/Stack-2-9-finetuned") 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
- vLLM
How to use my-ai-stack/Stack-2-9-finetuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "my-ai-stack/Stack-2-9-finetuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "my-ai-stack/Stack-2-9-finetuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/my-ai-stack/Stack-2-9-finetuned
- SGLang
How to use my-ai-stack/Stack-2-9-finetuned 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 "my-ai-stack/Stack-2-9-finetuned" \ --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": "my-ai-stack/Stack-2-9-finetuned", "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 "my-ai-stack/Stack-2-9-finetuned" \ --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": "my-ai-stack/Stack-2-9-finetuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use my-ai-stack/Stack-2-9-finetuned with Docker Model Runner:
docker model run hf.co/my-ai-stack/Stack-2-9-finetuned
walidsobhie-code Claude Opus 4.6 commited on
Commit ·
cc5f046
1
Parent(s): b64b6b0
Update documentation to 128K context
Browse files- Update context badges and descriptions from 32K to 128K
- Add NTK RoPE scaling for extended context support
- Update model cards and READMEs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- MODEL_CARD.md +4 -4
- README.md +2 -2
- docs/MODEL_CARD.md +4 -4
- docs/README.md +2 -2
- stack/internal/OPENROUTER_SUBMISSION.md +2 -2
MODEL_CARD.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<img src="https://img.shields.io/badge/HF%20Space-Demo-green?style=flat-square&logo=huggingface" alt="HuggingFace Space">
|
| 7 |
</a>
|
| 8 |
<img src="https://img.shields.io/badge/Parameters-1.5B-purple?style=flat-square" alt="Parameters">
|
| 9 |
-
<img src="https://img.shields.io/badge/Context-
|
| 10 |
<img src="https://img.shields.io/badge/License-Apache%202.0-yellow?style=flat-square" alt="License">
|
| 11 |
</p>
|
| 12 |
|
|
@@ -21,7 +21,7 @@ Stack 2.9 is a specialized code generation model fine-tuned from [Qwen/Qwen2.5-C
|
|
| 21 |
## Key Features
|
| 22 |
|
| 23 |
- **Specialized for Code**: Trained on Stack Overflow patterns for better code generation
|
| 24 |
-
- **
|
| 25 |
- **Efficient**: Runs on consumer GPUs (RTX 3060+)
|
| 26 |
- **Open Source**: Apache 2.0 licensed
|
| 27 |
|
|
@@ -33,7 +33,7 @@ Stack 2.9 is a specialized code generation model fine-tuned from [Qwen/Qwen2.5-C
|
|
| 33 |
|-----------|-------|
|
| 34 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 35 |
| **Parameters** | 1.5B |
|
| 36 |
-
| **Context Length** |
|
| 37 |
| **Fine-tuning Method** | LoRA (Rank 8) |
|
| 38 |
| **Precision** | FP16 |
|
| 39 |
| **License** | Apache 2.0 |
|
|
@@ -186,7 +186,7 @@ Fine-tuned on Stack Overflow code Q&A pairs including:
|
|
| 186 |
|---------|-------------------|-----------|
|
| 187 |
| Code Generation | General | Stack Overflow patterns |
|
| 188 |
| Python Proficiency | Baseline | Enhanced |
|
| 189 |
-
| Context Length |
|
| 190 |
| Specialization | General code | Stack Overflow Q&A |
|
| 191 |
|
| 192 |
---
|
|
|
|
| 6 |
<img src="https://img.shields.io/badge/HF%20Space-Demo-green?style=flat-square&logo=huggingface" alt="HuggingFace Space">
|
| 7 |
</a>
|
| 8 |
<img src="https://img.shields.io/badge/Parameters-1.5B-purple?style=flat-square" alt="Parameters">
|
| 9 |
+
<img src="https://img.shields.io/badge/Context-128K-orange?style=flat-square" alt="Context">
|
| 10 |
<img src="https://img.shields.io/badge/License-Apache%202.0-yellow?style=flat-square" alt="License">
|
| 11 |
</p>
|
| 12 |
|
|
|
|
| 21 |
## Key Features
|
| 22 |
|
| 23 |
- **Specialized for Code**: Trained on Stack Overflow patterns for better code generation
|
| 24 |
+
- **128K Context**: Handle larger codebases and complex documentation
|
| 25 |
- **Efficient**: Runs on consumer GPUs (RTX 3060+)
|
| 26 |
- **Open Source**: Apache 2.0 licensed
|
| 27 |
|
|
|
|
| 33 |
|-----------|-------|
|
| 34 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 35 |
| **Parameters** | 1.5B |
|
| 36 |
+
| **Context Length** | 131,072 tokens (128K) |
|
| 37 |
| **Fine-tuning Method** | LoRA (Rank 8) |
|
| 38 |
| **Precision** | FP16 |
|
| 39 |
| **License** | Apache 2.0 |
|
|
|
|
| 186 |
|---------|-------------------|-----------|
|
| 187 |
| Code Generation | General | Stack Overflow patterns |
|
| 188 |
| Python Proficiency | Baseline | Enhanced |
|
| 189 |
+
| Context Length | 128K | 128K |
|
| 190 |
| Specialization | General code | Stack Overflow Q&A |
|
| 191 |
|
| 192 |
---
|
README.md
CHANGED
|
@@ -31,7 +31,7 @@ model-index:
|
|
| 31 |
<img src="https://img.shields.io/github/license/my-ai-stack/stack-2.9?style=flat-square&logo=apache" alt="License"/>
|
| 32 |
</a>
|
| 33 |
<img src="https://img.shields.io/badge/Parameters-1.5B-blue?style=flat-square" alt="Parameters"/>
|
| 34 |
-
<img src="https://img.shields.io/badge/Context-
|
| 35 |
<img src="https://img.shields.io/badge/Tools-57-orange?style=flat-square&logo=robot" alt="Tools"/>
|
| 36 |
<img src="https://img.shields.io/badge/Agents-Multi--Agent-purple?style=flat-square" alt="Multi-Agent"/>
|
| 37 |
<img src="https://img.shields.io/badge/Python-3.10+-blue?style=flat-square&logo=python" alt="Python 3.10+"/>
|
|
@@ -168,7 +168,7 @@ result = await registry.call("grep", {"pattern": "def main", "path": "./src"})
|
|
| 168 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 169 |
| **Parameters** | 1.5B |
|
| 170 |
| **Fine-tuning** | LoRA (Rank 8) |
|
| 171 |
-
| **Context Length** |
|
| 172 |
| **License** | Apache 2.0 |
|
| 173 |
| **Release Date** | April 2026 |
|
| 174 |
| **Total Tools** | 57 |
|
|
|
|
| 31 |
<img src="https://img.shields.io/github/license/my-ai-stack/stack-2.9?style=flat-square&logo=apache" alt="License"/>
|
| 32 |
</a>
|
| 33 |
<img src="https://img.shields.io/badge/Parameters-1.5B-blue?style=flat-square" alt="Parameters"/>
|
| 34 |
+
<img src="https://img.shields.io/badge/Context-128K-green?style=flat-square" alt="Context"/>
|
| 35 |
<img src="https://img.shields.io/badge/Tools-57-orange?style=flat-square&logo=robot" alt="Tools"/>
|
| 36 |
<img src="https://img.shields.io/badge/Agents-Multi--Agent-purple?style=flat-square" alt="Multi-Agent"/>
|
| 37 |
<img src="https://img.shields.io/badge/Python-3.10+-blue?style=flat-square&logo=python" alt="Python 3.10+"/>
|
|
|
|
| 168 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 169 |
| **Parameters** | 1.5B |
|
| 170 |
| **Fine-tuning** | LoRA (Rank 8) |
|
| 171 |
+
| **Context Length** | 131,072 tokens (128K) |
|
| 172 |
| **License** | Apache 2.0 |
|
| 173 |
| **Release Date** | April 2026 |
|
| 174 |
| **Total Tools** | 57 |
|
docs/MODEL_CARD.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<img src="https://img.shields.io/badge/HF%20Space-Demo-green?style=flat-square&logo=huggingface" alt="HuggingFace Space">
|
| 7 |
</a>
|
| 8 |
<img src="https://img.shields.io/badge/Parameters-1.5B-purple?style=flat-square" alt="Parameters">
|
| 9 |
-
<img src="https://img.shields.io/badge/Context-
|
| 10 |
<img src="https://img.shields.io/badge/License-Apache%202.0-yellow?style=flat-square" alt="License">
|
| 11 |
</p>
|
| 12 |
|
|
@@ -21,7 +21,7 @@ Stack 2.9 is a specialized code generation model fine-tuned from [Qwen/Qwen2.5-C
|
|
| 21 |
## Key Features
|
| 22 |
|
| 23 |
- **Specialized for Code**: Trained on Stack Overflow patterns for better code generation
|
| 24 |
-
- **
|
| 25 |
- **Efficient**: Runs on consumer GPUs (RTX 3060+)
|
| 26 |
- **Open Source**: Apache 2.0 licensed
|
| 27 |
|
|
@@ -33,7 +33,7 @@ Stack 2.9 is a specialized code generation model fine-tuned from [Qwen/Qwen2.5-C
|
|
| 33 |
|-----------|-------|
|
| 34 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 35 |
| **Parameters** | 1.5B |
|
| 36 |
-
| **Context Length** |
|
| 37 |
| **Fine-tuning Method** | LoRA (Rank 8) |
|
| 38 |
| **Precision** | FP16 |
|
| 39 |
| **License** | Apache 2.0 |
|
|
@@ -186,7 +186,7 @@ Fine-tuned on Stack Overflow code Q&A pairs including:
|
|
| 186 |
|---------|-------------------|-----------|
|
| 187 |
| Code Generation | General | Stack Overflow patterns |
|
| 188 |
| Python Proficiency | Baseline | Enhanced |
|
| 189 |
-
| Context Length |
|
| 190 |
| Specialization | General code | Stack Overflow Q&A |
|
| 191 |
|
| 192 |
---
|
|
|
|
| 6 |
<img src="https://img.shields.io/badge/HF%20Space-Demo-green?style=flat-square&logo=huggingface" alt="HuggingFace Space">
|
| 7 |
</a>
|
| 8 |
<img src="https://img.shields.io/badge/Parameters-1.5B-purple?style=flat-square" alt="Parameters">
|
| 9 |
+
<img src="https://img.shields.io/badge/Context-128K-orange?style=flat-square" alt="Context">
|
| 10 |
<img src="https://img.shields.io/badge/License-Apache%202.0-yellow?style=flat-square" alt="License">
|
| 11 |
</p>
|
| 12 |
|
|
|
|
| 21 |
## Key Features
|
| 22 |
|
| 23 |
- **Specialized for Code**: Trained on Stack Overflow patterns for better code generation
|
| 24 |
+
- **128K Context**: Handle larger codebases and complex documentation
|
| 25 |
- **Efficient**: Runs on consumer GPUs (RTX 3060+)
|
| 26 |
- **Open Source**: Apache 2.0 licensed
|
| 27 |
|
|
|
|
| 33 |
|-----------|-------|
|
| 34 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 35 |
| **Parameters** | 1.5B |
|
| 36 |
+
| **Context Length** | 131,072 tokens (128K) |
|
| 37 |
| **Fine-tuning Method** | LoRA (Rank 8) |
|
| 38 |
| **Precision** | FP16 |
|
| 39 |
| **License** | Apache 2.0 |
|
|
|
|
| 186 |
|---------|-------------------|-----------|
|
| 187 |
| Code Generation | General | Stack Overflow patterns |
|
| 188 |
| Python Proficiency | Baseline | Enhanced |
|
| 189 |
+
| Context Length | 128K | 128K |
|
| 190 |
| Specialization | General code | Stack Overflow Q&A |
|
| 191 |
|
| 192 |
---
|
docs/README.md
CHANGED
|
@@ -25,7 +25,7 @@ model-index:
|
|
| 25 |
|
| 26 |
<p align="center">
|
| 27 |
<img src="https://img.shields.io/badge/Parameters-1.5B-blue?style=flat-square" alt="Parameters"/>
|
| 28 |
-
<img src="https://img.shields.io/badge/Context-
|
| 29 |
<img src="https://img.shields.io/badge/Tools-57-orange?style=flat-square&logo=robot" alt="Tools"/>
|
| 30 |
<img src="https://img.shields.io/badge/Agents-Multi--Agent-purple?style=flat-square" alt="Multi-Agent"/>
|
| 31 |
<img src="https://img.shields.io/badge/License-Apache--2.0-green?style=flat-square&logo=apache" alt="License"/>
|
|
@@ -189,7 +189,7 @@ Once registered, OpenClaw can directly call any tool: `file_read`, `grep`, `task
|
|
| 189 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 190 |
| **Parameters** | 1.5B |
|
| 191 |
| **Fine-tuning** | LoRA (Rank 8) |
|
| 192 |
-
| **Context Length** |
|
| 193 |
| **License** | Apache 2.0 |
|
| 194 |
| **Release Date** | April 2026 |
|
| 195 |
| **Total Tools** | 57 |
|
|
|
|
| 25 |
|
| 26 |
<p align="center">
|
| 27 |
<img src="https://img.shields.io/badge/Parameters-1.5B-blue?style=flat-square" alt="Parameters"/>
|
| 28 |
+
<img src="https://img.shields.io/badge/Context-128K-green?style=flat-square" alt="Context"/>
|
| 29 |
<img src="https://img.shields.io/badge/Tools-57-orange?style=flat-square&logo=robot" alt="Tools"/>
|
| 30 |
<img src="https://img.shields.io/badge/Agents-Multi--Agent-purple?style=flat-square" alt="Multi-Agent"/>
|
| 31 |
<img src="https://img.shields.io/badge/License-Apache--2.0-green?style=flat-square&logo=apache" alt="License"/>
|
|
|
|
| 189 |
| **Base Model** | Qwen/Qwen2.5-Coder-1.5B |
|
| 190 |
| **Parameters** | 1.5B |
|
| 191 |
| **Fine-tuning** | LoRA (Rank 8) |
|
| 192 |
+
| **Context Length** | 131,072 tokens |
|
| 193 |
| **License** | Apache 2.0 |
|
| 194 |
| **Release Date** | April 2026 |
|
| 195 |
| **Total Tools** | 57 |
|
stack/internal/OPENROUTER_SUBMISSION.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
**Model Name**: Qwen/Qwen2.5-Coder-32B
|
| 6 |
**Fine-Tuned Version**: Stack 2.9 (OpenClaw tool patterns)
|
| 7 |
-
**Context Length**:
|
| 8 |
**Architecture**: Transformer-based
|
| 9 |
**Parameters**: 32 billion
|
| 10 |
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
- **API Compatibility**: OpenAI-compatible endpoints
|
| 18 |
|
| 19 |
### Advanced Features
|
| 20 |
-
- **Context Understanding**:
|
| 21 |
- **Multi-file Operations**: Work across entire codebases
|
| 22 |
- **Error Detection**: Identify and suggest fixes
|
| 23 |
- **Code Review**: Automated quality analysis
|
|
|
|
| 4 |
|
| 5 |
**Model Name**: Qwen/Qwen2.5-Coder-32B
|
| 6 |
**Fine-Tuned Version**: Stack 2.9 (OpenClaw tool patterns)
|
| 7 |
+
**Context Length**: 131072 tokens
|
| 8 |
**Architecture**: Transformer-based
|
| 9 |
**Parameters**: 32 billion
|
| 10 |
|
|
|
|
| 17 |
- **API Compatibility**: OpenAI-compatible endpoints
|
| 18 |
|
| 19 |
### Advanced Features
|
| 20 |
+
- **Context Understanding**: 128K token context window
|
| 21 |
- **Multi-file Operations**: Work across entire codebases
|
| 22 |
- **Error Detection**: Identify and suggest fixes
|
| 23 |
- **Code Review**: Automated quality analysis
|