模型推荐

More
18 Jan 2026 15:28 #1038 by service
New Topic
1. Qwen2.5-Coder(华为的代码模型,兼容性好)python
Code:
# 安装 pip install transformers accelerate # 使用 from transformers import AutoTokenizer, AutoModelForCausalLM model_name = "Qwen/Qwen2.5-Coder-7B-Instruct" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForCausalLM.from_pretrained(model_name)
2. CodeLlama(Meta的代码模型,非常稳定)python
Code:
model_name = "codellama/CodeLlama-7b-Instruct-hf"
3. DeepSeek-Coder-V1(V1版本更稳定)python
Code:
model_name = "deepseek-ai/deepseek-coder-6.7b-instruct"

Please Log in or Create an account to join the conversation.