Running local LLMs
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 64/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ollama
- Lĩnh vực
- ai, documentation
Hướng nghiên cứu
Bắt đầu với nội dung issue hiện có và sơ đồ kiến trúc được liên kết trong đó, sau đó xem lại cách Ollama, vLLM và SGLang được mô tả. Mở rộng phần tổng quan bằng những hiểu biết sâu hơn được yêu cầu trong ghi chú, đồng thời giữ cho phần so sánh dễ hiểu đối với người đang lựa chọn một engine LLM cục bộ. Công việc được xem là hoàn tất khi các điểm khác biệt và kỹ thuật được tài liệu hóa đã được mở rộng vượt ra ngoài phần tóm tắt tổng quan hiện tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Brief overview of Ollama, vLLM and SGLang
To use open-weight models on your machine, you have three main options: Ollama, vLLM, and SGLang.
Each engine handles requests differently. The diagram below shows the differences and the main techniques behind each engine.
-
Ollama: Ollama is best for local dev, prototyping, and laptop-scale hardware. The architecture is inherently sequential. A local user calls the OpenAI-compatible API, and requests line up in a FIFO queue. Then Ollama runs a pre-quantized GGUF model, a compressed format it pulls, and the response comes back to the user.
-
vLLM: vLLM is best for high-traffic serving, max GPU utilization, and thousands of concurrent requests. Many users hit the server at once, and continuous batching slots new requests into the running batch instead of making them wait for it to finish. PagedAttention stores the KV cache, the memory a model keeps for tokens it has already processed. The PagedAttention maps the OS memory pages to vLLM memory blocks.
-
SGLang: SGLang is best for AI agents and tool loops, multi-turn chats, and JSON/regex outputs. The most commun example is when the workflow involves using repeated context, like a static system prompt or a large RAG documents, during a CI workflow. Agents and multi-turn chats send requests whose prompts overlap heavily. A prefix-aware scheduler routes them through the RadixAttention cache, a radix tree that reuses every shared prefix instead of recomputing it.
[!NOTE]
This is for the big picture. Needs to be continued with a bit more in deep insights...
- Ngôn ngữ chính
- JavaScript
- Star
- 291
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dwyl/technology-stack
-
ReactorĐang mởdiscuss elixir technical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dwyl/technology-stack#168 · 7 bình luận ·
-
chore discuss help wanted priority-1 T25m tech-debt technical
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
dwyl/technology-stack#179 ·
-
`Antigravity`Đang mởAi discuss enhancement starter T25m technical
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
dwyl/technology-stack#178 · 7 bình luận ·
-
`DESIGN.md`Đang mởAi discuss enhancement research T1h
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
dwyl/technology-stack#177 · 1 reaction ·
-
Choose Boring TechnologyĐang mởdiscuss enhancement T25m technical
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
dwyl/technology-stack#175 ·
Tất cả issue của dwyl/technology-stack
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
hexlet-codebattle/codebattle#2361 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
micromatch/picomatch#223 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
Upgrade MongoDB Node.js driver to 7.6+ for full MongoDB 9.0 compatibilityCó thể đã có người làm @ga262 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
parse-community/parse-server#10754 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
margelo/react-native-vision-camera#4211 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
platformatic/platformatic#5161 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày