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)# pip install -U transformers accelerate # 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", 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-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
Commit History
-
fix: restore previous model card with tools showcase
walidsobhie-code +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b64b6b0 -
release: prepare v1.0.0 for public release
walidsobhie-code- Add Apache 2.0 LICENSE to repo root - Update .gitignore with .DS_Store and macOS patterns - Update README with 57-tools showcase, MCP server info, and full tool list - Fix BaseTool.call() to handle async execute methods - Remove test_mcp.sh (dev artifact) - Consolidate repo structure for public release13d8bea -
reorganize: consolidate root level to 20 folders
walidsobhie-code +1: Claude Opus 4.6- Moved config files to /config/ (Dockerfile, pyproject, k8s, etc.) - Moved docs to /docs/ (all markdown files) - Organized scripts into /scripts/ (data, training, eval, deploy) - Moved requirements to /requirements/ - Moved notebooks to /notebooks/ - Merged training configs and data into /training/ - Created selective archive in /archived-selective/ (300KB) - All imports verified working Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b8e3e42 -
chore: Rename MCP server to Stack2.9
walidsobhie-codec7f1596 -
fix: Correct FastMCP.add_tool signature for MCP server
walidsobhie-code5ddf5f9 -
feat: Add MCP server for Stack 2.9 tools exposure
walidsobhie-code3de42e7 -
Fix tool parameter signatures and improve consistency
walidsobhie-code359acf6 -
feat: Add remaining RTMP tools (FileRead, FileWrite, Sleep, AskQuestion, Brief, TaskGet, TeamDelete, MCPTool, Worktree, SyntheticOutput)
walidsobhie-code5dc5419 -
feat: Add Tier 2 RTMP tools (TodoWrite, PlanMode, ConfigTool)
walidsobhie-code31d646f -
feat: Add FileEditTool, GrepTool, GlobTool (Tier 1 RTMP tools)
walidsobhie-code- FileEditTool: insert, delete, replace operations with regex and backups - GrepTool: regex search with context lines and file filtering - GlobTool: pattern matching (**/*.py style) with exclusions2531078 -
feat: Add Phase 2 RTMP tools (web_fetch, messaging, remote_trigger, tool_discovery)
walidsobhie-codee6853d3 -
feat: Add RTMP tools implementation (Phase 1 & 2)
walidsobhie-code- WebSearchTool (DuckDuckGo) - TaskCreate/List/Update/Delete - CronCreate/List/Delete - AgentSpawn/Status/List - TeamCreate/Disband/List/Status/Assign - SkillList/Execute/Info/Chain/Search - WebFetch, Messaging, RemoteTrigger, ToolDiscovery - 25 unit tests - Documentation068bc7f
-
feat: Add comprehensive enhancement modules for Stack 2.9
walidsobhie-code- NLP: Intent detection, entity recognition, contextual embeddings - Knowledge Graph: NetworkX-based graph with RAG engine - Emotional Intelligence: Sentiment analysis, empathy engine - Collaboration: Multi-session state management, MCP integration - Learning: Feedback collection, performance monitoring - Technical: DevOps templates, code analysis, debugging assistant Added run_full.py - fully enhanced chat interface with all modules.8f05ad1 -
Add persistent chat history to ~/.stack-2.9/chat_history.json
walidsobhie-code6807e9a -
fix: remove feedback prompt from chat mode for cleaner UX
walidsobhie-code31f5bef -
fix: update benchmark paths in stack-2.9-cli.py and remove deprecated cli/ module
walidsobhie-code- Fixed path resolution: stack-2.9-eval -> stack/eval, stack-2.9-training -> stack/training - Added __init__.py to benchmarks directory - Fixed ChatMessage timestamp default value - Removed src/cli/ (archived to ~/stack-2.9-backups/) - use src/stack-2.9-cli.py instead Users: Run with 'python3 src/stack-2.9-cli.py'fd9b9a2 -
init
walidsobhie-codea9b0b85 -
Add tools, fix web search, update model
walidsobhie-codecard35697c2
-
Fix Gradio/huggingface_hub version compatibility
walidsobhie-code +1: Claude Opus 4.6- Add gradio>=4.12.0 and huggingface_hub>=0.20.0 to requirements - Update Dockerfile to upgrade both packages before install - Add MODEL_CARD.md and merge_adapter.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>97fa10c
-
refactor: Clean up project structure - fewer root folders
walidsobhie-code +1: Claude Opus 4.6Reorganized to user-friendly structure: - Moved legacy docs to docs/archive/ - Merged CLI tools to src/cli/ - Moved training scripts to scripts/ - Removed empty/broken directories (benchmarks, space, website) - Added directory structure documentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>99a7be2 -
feat: add TypeScript modules and reorganize project structure
walidsobhie-code +1: Claude Opus 4.6New Features: - Voice Integration: TypeScript modules for voice recording, synthesis, cloning - LLM Service: Multi-provider client (OpenAI, Anthropic, Ollama) - MCP Client: Model Context Protocol integration - Code Indexing: Semantic code search (RAG) Training Data: - Added 46 tool schemas (from RTMP extraction) - Added RTMP-derived training examples - Updated manifest to v0.3.0 Project Organization: - Added src/voice, src/llm, src/mcp, src/indexing modules - Created DIRECTORY_STRUCTURE.md documentation - Moved docs to docs/guides and docs/reference - Added TypeScript configuration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>bfc7d04