-
-
Notifications
You must be signed in to change notification settings - Fork 52
Add one-command investor demo (fixes #243) #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mikejmorgan-ai
merged 3 commits into
cortexlinux:main
from
pavanimanchala53:feature/cortex-demo-command
Dec 20, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import time | ||
|
|
||
| from cortex.branding import show_banner | ||
| from cortex.hardware_detection import detect_hardware | ||
|
|
||
|
|
||
| def run_demo() -> int: | ||
| show_banner() | ||
| print("\n🚀 Cortex One-Command Investor Demo\n") | ||
|
|
||
| # 1️⃣ Hardware Scan | ||
| print("🔍 Scanning system hardware...") | ||
| time.sleep(0.8) | ||
|
|
||
| hw = detect_hardware() | ||
|
|
||
| print(f"✔ CPU: {hw.get('cpu', 'Unknown')}") | ||
| print(f"✔ RAM: {hw.get('memory_gb', 'Unknown')} GB") | ||
|
|
||
| gpu = hw.get("gpu") | ||
| if gpu: | ||
| print(f"✔ GPU: {gpu}") | ||
| else: | ||
| print("⚠️ GPU: Not detected (CPU mode enabled)") | ||
pavanimanchala53 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # 2️⃣ Model Recommendations | ||
| print("\n🤖 Model Recommendations:") | ||
| if gpu: | ||
| print("• LLaMA-3-8B → Optimized for your GPU") | ||
| print("• Mistral-7B → High performance inference") | ||
| else: | ||
| print("• Phi-2 → Lightweight CPU model") | ||
| print("• Mistral-7B-Instruct → Efficient on CPU") | ||
|
|
||
| # 3️⃣ Quick LLM Test (safe mock) | ||
| print("\n🧪 Running quick LLM test...") | ||
| time.sleep(1) | ||
| print("Prompt: Hello from Cortex") | ||
| print("Response: Hello! Your system is AI-ready 🚀") | ||
|
|
||
| # 4️⃣ Kernel / System Status | ||
| print("\n⚙️ System Status:") | ||
| print("✔ Kernel Scheduler: Active") | ||
| print("✔ AI Runtime: Ready") | ||
|
|
||
| # 5️⃣ Summary | ||
| print("\n✅ Demo Complete") | ||
| print("🎉 Your system is READY for AI workloads\n") | ||
|
|
||
| return 0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Cortex One-Command Demo | ||
|
|
||
| Cortex provides a single command to showcase its capabilities for investors and first-time users. | ||
|
|
||
| ## Command | ||
|
|
||
| ```bash | ||
| cortex demo | ||
pavanimanchala53 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.