Instructions to use Sculptor-AI/Ursa_Minor_Smashed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Sculptor-AI/Ursa_Minor_Smashed with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sculptor-AI/Ursa_Minor_Smashed:F32 # Run inference directly in the terminal: llama cli -hf Sculptor-AI/Ursa_Minor_Smashed:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sculptor-AI/Ursa_Minor_Smashed:F32 # Run inference directly in the terminal: llama cli -hf Sculptor-AI/Ursa_Minor_Smashed:F32
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Sculptor-AI/Ursa_Minor_Smashed:F32 # Run inference directly in the terminal: ./llama-cli -hf Sculptor-AI/Ursa_Minor_Smashed:F32
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Sculptor-AI/Ursa_Minor_Smashed:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Sculptor-AI/Ursa_Minor_Smashed:F32
Use Docker
docker model run hf.co/Sculptor-AI/Ursa_Minor_Smashed:F32
- LM Studio
- Jan
- Ollama
How to use Sculptor-AI/Ursa_Minor_Smashed with Ollama:
ollama run hf.co/Sculptor-AI/Ursa_Minor_Smashed:F32
- Unsloth Desktop
- Docker Model Runner
How to use Sculptor-AI/Ursa_Minor_Smashed with Docker Model Runner:
docker model run hf.co/Sculptor-AI/Ursa_Minor_Smashed:F32
- Lemonade
How to use Sculptor-AI/Ursa_Minor_Smashed with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sculptor-AI/Ursa_Minor_Smashed:F32
Run and chat with the model
lemonade run user.Ursa_Minor_Smashed-F32
List all available models
lemonade list
- Atomic Chat
| #!/usr/bin/env python3 | |
| """CPU-optimized chat interface for Ursa Minor Smashed model""" | |
| import torch | |
| from inference_cpu import generate_direct, load_model_direct | |
| def main(): | |
| print("Ursa Minor Smashed Chat (CPU)") | |
| print("Type 'quit' to exit, 'reset' to clear context") | |
| print("-" * 50) | |
| # Load model | |
| print("Loading model on CPU...") | |
| model = load_model_direct("model_optimized.pt") | |
| print("Model loaded! Ready to chat.\n") | |
| context = "" | |
| max_context_length = 600 # Smaller for CPU efficiency | |
| while True: | |
| user_input = input("You: ").strip() | |
| if user_input.lower() == 'quit': | |
| print("Goodbye!") | |
| break | |
| elif user_input.lower() == 'reset': | |
| context = "" | |
| print("Context cleared!") | |
| continue | |
| elif user_input == "": | |
| continue | |
| # Add user input to context | |
| if context: | |
| context += f"\nHuman: {user_input}\nAssistant:" | |
| else: | |
| context = f"Human: {user_input}\nAssistant:" | |
| # Truncate context if too long | |
| if len(context.split()) > max_context_length: | |
| # Keep recent context | |
| words = context.split() | |
| context = " ".join(words[-max_context_length:]) | |
| # Generate response with CPU optimizations | |
| try: | |
| full_response = generate_direct( | |
| model, | |
| context, | |
| max_new_tokens=100, # Match inference_cpu.py default | |
| temperature=0.8, # Match inference_cpu.py default | |
| top_p=0.9, | |
| top_k=30, # Lower for CPU efficiency | |
| repetition_penalty=1.1 | |
| ) | |
| # Extract just the new response | |
| response = full_response[len(context):].strip() | |
| # Stop at next "Human:" if present | |
| if "Human:" in response: | |
| response = response.split("Human:")[0].strip() | |
| print(f"Assistant: {response}") | |
| # Add response to context for next turn | |
| context = full_response | |
| except Exception as e: | |
| print(f"Error generating response: {e}") | |
| print("Try typing 'reset' to clear context and continue.") | |
| if __name__ == "__main__": | |
| main() |