Add Apple ML-Sharp

This commit is contained in:
2026-02-16 20:02:23 +08:00
parent d57f53613e
commit a2cc9c1391
5 changed files with 40 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM continuumio/miniconda3:latest
WORKDIR /workspace/ml-sharp
COPY ml-sharp .
RUN conda create -n sharp python=3.13
SHELL ["conda", "run", "-n", "sharp", "/bin/bash", "-c"]
RUN pip install -r requirements.txt
RUN pip3 install --no-cache-dir \
--index-url https://download.pytorch.org/whl/cu130 \
#--extra-index-url https://mirrors.tencent.com/pytorch-wheels/whl/cu130/ \
torch \
torchvision
WORKDIR /workspace
RUN echo "conda activate sharp" >> ~/.profile
CMD ["/bin/bash", "-l"]
+16
View File
@@ -0,0 +1,16 @@
services:
ml-sharp:
build:
context: .
image: ml-sharp:me
extends:
file: ../config.yml
service: base-app
volumes:
- type: bind
source: ./ml-sharp
target: /workspace/ml-sharp
- type: bind
source: ./.cache
target: /root/.cache
+1
Submodule ml-sharp/ml-sharp added at 1eaa046834
+1
View File
@@ -0,0 +1 @@
docker compose run --rm -it --name ml-sharp ml-sharp