Views
No views yet
| Model Series | Model | Download Link | Description |
|---|---|---|---|
| JiuZhou | JiuZhou-base | Huggingface | Base model (Rich in geoscience knowledge) |
| JiuZhou | JiuZhou-Instruct-v0.1 | Huggingface | Instruct model (Instruction alignment caused a loss of some geoscience knowledge, but it has instruction-following ability) LoRA fine-tuned on Alpaca_GPT4 in both Chinese and English and GeoSignal |
| JiuZhou | JiuZhou-Instruct-v0.2 | HuggingFace Wisemodel | Instruct model (Instruction alignment caused a loss of some geoscience knowledge, but it has instruction-following ability) Fine-tuned with high-quality general instruction data |
| ClimateChat | ClimateChat | HuggingFace Wisemodel | Instruct model Fine-tuned on JiuZhou-base for instruction following |
| Chinese-Mistral | Chinese-Mistral-7B | HuggingFace Wisemodel ModelScope | Base model |
| Chinese-Mistral | Chinese-Mistral-7B-Instruct-v0.1 | HuggingFace Wisemodel ModelScope | Instruct model LoRA fine-tuned with Alpaca_GPT4 in both Chinese and English |
| Chinese-Mistral | Chinese-Mistral-7B-Instruct-v0.2 | HuggingFace Wisemodel | Instruct model LoRA fine-tuned with a million high-quality instructions |
| PreparedLLM | Prepared-Llama | Huggingface Wisemodel | Base model Continual pretraining with a small number of geoscience data Recommended to use JiuZhou |
1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
5
6model_path = "itpossible/JiuZhou-Instruct-v0.2"
7tokenizer = AutoTokenizer.from_pretrained(model_path)
8model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype=torch.bfloat16, device_map=device)
9
10text = "What is geoscience?"
11messages = [{"role": "user", "content": text}]
12
13inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(device)
14outputs_id = model.generate(inputs, max_new_tokens=600, do_sample=True)
15outputs = tokenizer.batch_decode(outputs_id, skip_special_tokens=True)[0]
16print(outputs)






1git clone https://github.com/THU-ESIS/JiuZhou.git
2cd JiuZhou
3pip install -e ".[torch,metrics]"llamafactory-cli train examples/train_lora/JiuZhou_pretrain_sft.yamlllamafactory-cli train examples/train_lora/JiuZhou_lora_sft.yamlllamafactory-cli chat examples/inference/JiuZhou_lora_sft.yamlllamafactory-cli export examples/merge_lora/JiuZhou_lora_sft.yaml1@article{chen2024preparedllm,
2 author = {Chen, Zhou and Lin, Ming and Wang, Zimeng and Zang, Mingrun and Bai, Yuqi},
3 title = {PreparedLLM: Effective Pre-pretraining Framework for Domain-specific Large Language Models},
4 year = {2024},
5 journal = {Big Earth Data},
6 pages = {1--24},
7 doi = {10.1080/20964471.2024.2396159},
8 url = {https://doi.org/10.1080/20964471.2024.2396159}
9}