-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (33 loc) · 1.56 KB
/
Makefile
File metadata and controls
38 lines (33 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# RaptScore Project Management
.PHONY: setup install-kernel uninstall-kernel verify help
# Default target
help:
@echo "RaptScore Environment Management"
@echo ""
@echo "Available targets:"
@echo " setup - Set up environment with uv sync"
@echo " install-kernel - Register Jupyter kernel for RaptScore"
@echo " uninstall-kernel- Remove RaptScore Jupyter kernel"
@echo " verify - Verify environment setup"
@echo " help - Show this help message"
@echo ""
@echo "Quick start: make setup && make install-kernel"
# Set up environment using uv sync
setup:
@echo "🚀 Setting up RaptScore environment..."
uv sync
@echo "✅ Environment setup complete!"
# Install Jupyter kernel
install-kernel:
@echo "🔧 Registering RaptScore Jupyter kernel..."
uv run python -m ipykernel install --user --name=RaptScore --display-name="RaptScore"
@echo "✅ Jupyter kernel registered successfully"
# Uninstall Jupyter kernel
uninstall-kernel:
@echo "🗑️ Removing RaptScore Jupyter kernel..."
-jupyter kernelspec uninstall RaptScore -f
@echo "✅ Jupyter kernel removed"
# Verify environment setup
verify:
@echo "🔍 Verifying environment setup..."
@uv run python -c "import torch; import transformers; print(f'PyTorch version: {torch.__version__}'); print(f'CUDA available: {torch.cuda.is_available()}'); torch.cuda.is_available() and print(f'CUDA version: {torch.version.cuda}') and print(f'GPU device: {torch.cuda.get_device_name(0)}'); print(f'Transformers version: {transformers.__version__}'); print('✅ Environment verification complete!')"