Chuyển đến nội dung
Bản đồ AI

Sinh mã

Viết mã chạy được từ mô tả

Mã & phần mềmCơ bản #33
đầu vàoVăn bảnMã

Toàn văn của trang này được trình bày bằng tiếng Anh; tiêu đề và phần dẫn đã được bản địa hóa.

NĂNG LỰC NÀY NGHĨA LÀ GÌ

Takes a description — write a function that reads a CSV into a list of dicts and skips blank lines — and outputs the corresponding source. Unlike code completion it targets a new feature or a whole piece of logic, usually written from scratch; unlike reasoning the deliverable is compilable, runnable code rather than a textual conclusion.

Làm ra sao về mặt kỹ thuật

The base is a language model pre-trained on large code corpora; strict syntax makes code easier to verify by execution than prose, so unit-test pass signals work well as reward for reinforcement learning or rejection-sampling fine-tuning. Training and evaluation use problems with test cases such as HumanEval and MBPP, and generation can sample several candidates and discard the ones that fail.

Sản phẩm tiêu biểu

11

GPT-4o

2024
OpenAI

Mô hình đa phương thức gốc, xử lý văn bản, hình ảnh và âm thanh qua một cửa vào

Mô hình Đóng
Văn bảnHình ảnhÂm thanhVăn bảnÂm thanh

Claude

2023
Anthropic

Mô hình hội thoại phổ thông nổi bật với ngữ cảnh dài và căn chỉnh an toàn

Mô hình Đóng
Văn bảnHình ảnhVăn bản

DeepSeek-V3

2024
DeepSeek

MoE trọng số mở 671B tham số, chỉ kích hoạt 37B mỗi token

Mô hình Trọng số mở
Văn bảnVăn bản

Qwen

2023
Alibaba (Qwen)

Dòng trọng số mở với nhiều kích cỡ và bản đa phương thức

Mô hình Trọng số mở
Văn bảnHình ảnhVăn bản

Gemini

2023
Google DeepMind

Mô hình đa phương thức gốc, xử lý ngữ cảnh siêu dài

Mô hình Đóng
Văn bảnHình ảnhÂm thanhVideoVăn bản

GitHub Copilot

2021
Microsoft

Hoàn thiện và viết lại mã trong trình soạn thảo theo ngữ cảnh

Công cụ Freemium
Văn bảnMãMã

o3

2025
OpenAI

Suy luận dài trước khi trả lời, đổi tính toán lúc suy luận lấy độ chính xác ổn định hơn

Mô hình Đóng
Văn bảnHình ảnhVăn bản

Claude Code

2025
Anthropic

Tác nhân lập trình hoàn thành việc nhiều bước ngay trong terminal

Công cụ Đóng
Văn bảnMãMã

DeepSeek-R1

2025
DeepSeek

Mô hình suy luận huấn luyện bằng RL trên chuỗi suy nghĩ, trọng số mở theo giấy phép MIT

Mô hình Trọng số mở
Văn bảnVăn bản

Devin

2024
Cognition (Devin)

Tác nhân lập trình tự chủ có shell, trình soạn thảo và trình duyệt riêng

Ứng dụng Đóng
Văn bảnMãMã

Cursor

2023
Anysphere (Cursor)

Trình soạn thảo mã trên máy tính lấy cả kho mã làm ngữ cảnh

Ứng dụng Freemium
Văn bảnMãMã

Tổ chức liên quan

Cách dùng tiêu biểu

  • New features and utility scripts
  • Data cleaning and transformation scripts
  • Test cases and project scaffolding
  • Porting code across languages and frameworks

Đánh giá nó tốt hay không thế nào

pass@k
Share of problems with at least one sample passing all tests out of k
Benchmark pass rate
Pass rate on fixed sets such as HumanEval
Compile and lint pass rate
Whether generated code passes the compiler and type checks as-is

Ranh giới và điểm khó

  • It invents libraries or methods, producing plausible interfaces that do not exist
  • Code can pass unit tests yet leave holes in edge cases, error handling and security
  • Multi-file changes are inconsistent, with call sites disagreeing with definitions

Các khái niệm đằng sau