Instructions to use xiapk7/AQuilt_Eval_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xiapk7/AQuilt_Eval_lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xiapk7/AQuilt_Eval_lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("xiapk7/AQuilt_Eval_lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use xiapk7/AQuilt_Eval_lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xiapk7/AQuilt_Eval_lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xiapk7/AQuilt_Eval_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xiapk7/AQuilt_Eval_lora
- SGLang
How to use xiapk7/AQuilt_Eval_lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "xiapk7/AQuilt_Eval_lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xiapk7/AQuilt_Eval_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "xiapk7/AQuilt_Eval_lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xiapk7/AQuilt_Eval_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use xiapk7/AQuilt_Eval_lora with Docker Model Runner:
docker model run hf.co/xiapk7/AQuilt_Eval_lora
Model Details
Model Description
This Lora is trained based on the AQuilt model and should be loaded into the AQuilt model when performing Self-Inspection.
Model Sources
- Paper: AQuilt: Weaving Logic and Self-Inspection into Low-Cost, High-Relevance Data Synthesis for Specialist LLMs
- AQuilt model path: https://huggingface.co/xiapk7/AQuilt
- Repository: https://github.com/Krueske/AQuilt
How to use
AQuilt_Eval_lora is a LoRA weight checkpoint that must be used in conjunction with AQuilt. Its sole purpose is to perform inspection on the synthetic data produced by AQuilt.
Please refer to the https://github.com/Krueske/AQuilt for an example invocation script:
CUDA_VISIBLE_DEVICES=0 python ./dataGen.py \
--model_path /path/to/AQuilt \
--eval_lora_path /path/to/AQuilt_eval_lora \
--eval true \
--input_file input.txt \
--output_file output.json \
--task_type "natural language inference" \
--language "en" \
--task_predix "" \
--num_gen_per_text 1 \
--temperature 0.7 \
--top_p 0.95 \
--seed 42
In the above command, eval_lora_path should point to the locally downloaded AQuilt_Eval_lora checkpoint. When you need to inspect the data synthesized by AQuilt, supply this path and set the --eval flag to true.
Training Details
This Lora is trained based on the AQuilt model.
Training Data
We've built a training dataset for Self-Inspection of about 14k scale: https://huggingface.co/datasets/xiapk7/AQuilt_trainingset.(Self-Inspection-Trainingset subset)
Training hyperparameters:
We use the following hyperparameters:
- LoRA rank (r): 64
- LoRA scaling factor (alpha): 4
- LoRA dropout: 0
- Optimizer: AdamW
- Learning rate scheduler: cosine
- Max. learning rate: 1e-04
- Min. learning rate: 0
- Weight decay: 0.1
- Dropout: 0
- Effective batch size: 16
- Epoch: 2
π Citation
If you find this model useful, please cite:
@misc{ke2025aquiltweavinglogicselfinspection,
title={AQuilt: Weaving Logic and Self-Inspection into Low-Cost, High-Relevance Data Synthesis for Specialist LLMs},
author={Xiaopeng Ke and Hexuan Deng and Xuebo Liu and Jun Rao and Zhenxi Song and Jun Yu and Min Zhang},
year={2025},
eprint={2507.18584},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2507.18584},
}