GraphCanon updated 2d · GitHub synced 2d
Decision brief
Yi is a series of large language models designed for local deployment and inference. It supports running on specific hardware configurations like A800 with ample GPU memory.
Good fit when
- Use Yi when you need to perform local inference and have access to suitable hardware such as the A800 GPU.
- Choose Yi if you want a model that can be fine-tuned for chat-specific tasks, as it offers both base and chat models with detailed instructions for setup.
Avoid when
- Avoid using Yi if your local machine lacks sufficient memory or processing power to handle the large language models.
- Do not select Yi when you prefer cloud-based solutions that do not require manual setup of a local environment and model download.
Observed Jul 15, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Dormant (628d since push)
- As of 2d
- Provenance
- Not a fork · Organization account
- As of 2d
- Security (OSV)
- 138 low (138 low)
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Install
git clone https://github.com/01-ai/YiHow it fits your stack(8)
Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.
Alternative
Integrates
Related
Relationship graph
Optional deeper exploration of typed edges and category neighbours.
Similar tools
Same-category neighbours not already linked as typed edges.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
Provides large language models and instructions for downloading the models and performing inference locally.
Capability facts
- Deploy
- Self-host
Source: dockerfile:Dockerfile · Aug 17, 2026
- Docker
- Dockerfile present
Source: dockerfile:Dockerfile · Aug 17, 2026
- Languages
- jupyter notebook, python
Source: github.language+pyproject.toml · Aug 17, 2026
Categories
Graph entities
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Aug 17, 2026)
- Make sure Python 3.10 or a later version is installed.Source link
Tags
README
Quick start
💡 Tip: If you want to get started with the Yi model and explore different methods for inference, check out the Yi Cookbook.
Quick start - pip
This tutorial guides you through every step of running Yi-34B-Chat locally on an A800 (80G) and then performing inference.
Step 0: Prerequisites
-
Make sure Python 3.10 or a later version is installed.
-
If you want to run other Yi models, see software and hardware requirements.
Step 1: Prepare your environment
To set up the environment and install the required packages, execute the following command.
git clone https://github.com/01-ai/Yi.git
cd yi
pip install -r requirements.txt
Step 2: Download the Yi model
You can download the weights and tokenizer of Yi models from the following sources:
Step 3: Perform inference
You can perform inference with Yi chat or base models as below.
Perform inference with Yi chat model
-
Create a file named
quick_start.pyand copy the following content to it.from transformers import AutoModelForCausalLM, AutoTokenizer model_path = '<your-model-path>' tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False) # Since transformers 4.35.0, the GPT-Q/AWQ model can be loaded using AutoModelForCausalLM. model = AutoModelForCausalLM.from_pretrained( model_path, device_map="auto", torch_dtype='auto' ).eval() # Prompt content: "hi" messages = [ {"role": "user", "content": "hi"} ] input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt') output_ids = model.generate(input_ids.to('cuda')) response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True) # Model response: "Hello! How can I assist you today?" print(response) -
Run
quick_start.py.python quick_start.pyThen you can see an output similar to the one below. 🥳
Hello! How can I assist you today?
Perform inference with Yi base model
-
Yi-34B
The steps are similar to pip - Perform inference with Yi chat model.
You can use the existing file
text_generation.py.python demo/text_generation.py --model <your-model-path>Then you can see an output similar to the one below. 🥳
Output. ⬇️
Prompt: Let me tell you an interesting story about cat Tom and mouse Jerry,
Generation: Let me tell you an interesting story about cat Tom and mouse Jerry, which happened in my childhood. My father had a big house with two cats living inside it to kill mice. One day when I was playing at home alone, I found one of the tomcats lying on his back near our kitchen door, looking very much like he wanted something from us but couldn’t get up because there were too many people around him! He kept trying for several minutes before finally giving up...
-
Yi-9B
Input
from transformers import AutoModelForCausalLM, AutoTokenizer MODEL_DIR = "01-ai/Yi-9B" model = AutoModelForCausalLM.from_pretrained(MODEL_DIR, torch_dtype="auto") tokenizer = AutoTokenizer.from_pretrained(MODEL_DIR, use_fast=False) input_text = "# write the quick sort algorithm" inputs = tokenizer(input_text, return_tensors="pt").to(model.device) outputs = model.generate(**inputs, max_length=256) print(tokenizer.decode(outputs[0], skip_special_tokens=True))Output
# write the quick sort algorithm def quick_sort(arr): if len(a
For agents
This page has a .md twin and JSON over the API.