AirLLM 2.8T LLM inference with single 4GB GPU
Python chinese-llmchinese-nlpfinetunegenerative-aiinstruct-gptinstruction-setllamallmloraopen-modelsopen-sourceopen-source-modelsqlora
refine readme
Yu Li7055b92bf68f
diff --git a/air_llm/README.md b/air_llm/README.mdindex 93b4be8..de5d59e 100644--- a/air_llm/README.md+++ b/air_llm/README.md@@ -309,7 +309,7 @@ A lot of the code are based on SimJeg's great work in the Kaggle exam competitio## FAQ-### 8.1. MetadataIncompleteBuffer+### 1. MetadataIncompleteBuffersafetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer@@ -317,7 +317,7 @@ If you run into this error, most possible cause is you run out of disk space. Th如果你碰到这个error,很有可能是空间不足。可以参考一下[这个](https://huggingface.co/TheBloke/guanaco-65B-GPTQ/discussions/12) 可能需要扩大硬盘空间,删除huggingface的[.cache](https://huggingface.co/docs/datasets/cache),然后重新run。-### 8.2. ValueError: max() arg is an empty sequence+### 2. ValueError: max() arg is an empty sequenceMost likely you are loading QWen or ChatGLM model with Llama2 class. Try the following:@@ -335,7 +335,7 @@ from airllm import AutoModel #<----- instead of AirLLMLlama2AutoModel.from_pretrained(...)```-### 8.3. 401 Client Error....Repo model ... is gated.+### 3. 401 Client Error....Repo model ... is gated.Some models are gated models, needs huggingface api token. You can provide hf_token:@@ -343,7 +343,7 @@ Some models are gated models, needs huggingface api token. You can provide hf_tomodel = AutoModel.from_pretrained("meta-llama/Llama-2-7b-hf", #hf_token='HF_API_TOKEN')```-### 8.4. ValueError: Asking to pad but the tokenizer does not have a padding token.+### 4. ValueError: Asking to pad but the tokenizer does not have a padding token.Some model's tokenizer doesn't have padding token, so you can set a padding token or simply turn the padding config off: