Text Generation
Transformers
Safetensors
GGUF
English
qwen2
code-generation
code-assistant
general-purpose
llama.cpp
ollama
sovereign-ai
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use my-ai-stack/Stack-X-Ultimate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use my-ai-stack/Stack-X-Ultimate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="my-ai-stack/Stack-X-Ultimate") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("my-ai-stack/Stack-X-Ultimate") model = AutoModelForCausalLM.from_pretrained("my-ai-stack/Stack-X-Ultimate", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use my-ai-stack/Stack-X-Ultimate 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-X-Ultimate" # 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-X-Ultimate", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/my-ai-stack/Stack-X-Ultimate
- SGLang
How to use my-ai-stack/Stack-X-Ultimate 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-X-Ultimate" \ --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-X-Ultimate", "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-X-Ultimate" \ --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-X-Ultimate", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use my-ai-stack/Stack-X-Ultimate with Docker Model Runner:
docker model run hf.co/my-ai-stack/Stack-X-Ultimate
Walid Sobhi commited on
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Stack X Ultimate
|
| 2 |
|
| 3 |
**A state-of-the-art agentic coding model built on Qwen2.5-Coder-3B-Instruct**
|
|
@@ -109,7 +141,8 @@ tokenizer = AutoTokenizer.from_pretrained("my-ai-stack/Stack-X-Ultimate-Merged")
|
|
| 109 |
Base model: Qwen/Qwen2.5-Coder-3B-Instruct
|
| 110 |
LoRA rank: 32 (59M trainable params)
|
| 111 |
LoRA alpha: 64
|
| 112 |
-
Target modules: q_proj, k_proj, v_proj, o_proj,
|
|
|
|
| 113 |
Learning rate: 2e-4 (cosine decay)
|
| 114 |
Warmup: 150 steps
|
| 115 |
Batch size: 1 × gradient_accumulation=16
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-Coder-3B-Instruct
|
| 3 |
+
datasets:
|
| 4 |
+
- nvidia/Nemotron-Agentic-v1
|
| 5 |
+
- my-ai-stack/Stack-4.0-Dataset
|
| 6 |
+
pipeline_tag: causal-lm
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
tags:
|
| 9 |
+
- code-generation
|
| 10 |
+
- agentic-ai
|
| 11 |
+
- tool-use
|
| 12 |
+
- lora
|
| 13 |
+
- qwen
|
| 14 |
+
- python
|
| 15 |
+
- coding-assistant
|
| 16 |
+
- transformers
|
| 17 |
+
- peft
|
| 18 |
+
- 3b-parameter-model
|
| 19 |
+
model_index:
|
| 20 |
+
- name: Stack X Ultimate
|
| 21 |
+
results:
|
| 22 |
+
- task:
|
| 23 |
+
type: text-generation
|
| 24 |
+
description: Agentic coding assistant with tool-use capabilities
|
| 25 |
+
dataset:
|
| 26 |
+
type: openai/openai_humaneval
|
| 27 |
+
name: HumanEval
|
| 28 |
+
metrics:
|
| 29 |
+
- type: pass@1
|
| 30 |
+
value: TBD
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
# Stack X Ultimate
|
| 34 |
|
| 35 |
**A state-of-the-art agentic coding model built on Qwen2.5-Coder-3B-Instruct**
|
|
|
|
| 141 |
Base model: Qwen/Qwen2.5-Coder-3B-Instruct
|
| 142 |
LoRA rank: 32 (59M trainable params)
|
| 143 |
LoRA alpha: 64
|
| 144 |
+
Target modules: q_proj, k_proj, v_proj, o_proj,
|
| 145 |
+
gate_proj, up_proj, down_proj
|
| 146 |
Learning rate: 2e-4 (cosine decay)
|
| 147 |
Warmup: 150 steps
|
| 148 |
Batch size: 1 × gradient_accumulation=16
|