File size: 867 Bytes
647f69c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b2e88b8
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
39
40
# HuggingFace Deployment

Deploy SAM3 to HuggingFace Inference Endpoints.

## Quick Deploy

```bash
./deployments/huggingface/deploy.sh
```

## Configuration

- **Registry**: `sam3acr4hf.azurecr.io`
- **Image**: `sam3-hf:latest`
- **Endpoint**: `sam3-segmentation`
- **Organization**: `Logiroad`
- **Hardware**: NVIDIA A10G (24GB VRAM)

## Manual Deployment

```bash
# Build and push
docker build -t sam3acr4hf.azurecr.io/sam3-hf:latest -f docker/Dockerfile .
az acr login --name sam3acr4hf
docker push sam3acr4hf.azurecr.io/sam3-hf:latest

# Restart endpoint
python3 -c "from huggingface_hub import HfApi; api = HfApi(); e = api.get_inference_endpoint('sam3-segmentation', namespace='Logiroad'); e.pause(); e.resume()"
```

## Testing

```bash
python3 scripts/test/test_api.py
```

## Endpoint URL

https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud