MistralLite-AWQ is a version of the
MistralLite model that was
quantized using the AWQ method developed by
Lin et al. (2023).
The MistralLite-AWQ models are approximately
70% smaller than those of MistralLite whilst maintaining comparable performance.
Please refer to the
original MistralLite model card for details about the model
preparation and training processes.
1python -m vllm.entrypoints.openai.api_server \
2 --model amazon/MistralLite-AWQ \
3 --quantization awq
1curl -X POST http://localhost:8000/v1/completions \
2 -H "Content-Type: application/json" \
3 -d '{ "model": "amazon/MistralLite-AWQ",
4 "prompt": "<|prompter|>What are the main challenges to support a long context for LLM?</s><|assistant|>",
5 "temperature": 0,
6 "echo": false
7 }'
1from vllm import LLM, SamplingParams
2
3prompts = [
4 "<|prompter|>What are the main challenges to support a long context for LLM?</s><|assistant|>",
5]
6sampling_params = SamplingParams(temperature=0, max_tokens=100)
7
8llm = LLM(model="amazon/MistralLite-AWQ")
9
10outputs = llm.generate(prompts, sampling_params)
11
12# Print the outputs.
13for output in outputs:
14 prompt = output.prompt
15 generated_text = output.outputs[0].text
16 print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
17
Before using the MistralLite-AWQ model, it is important to perform your own
independent assessment, and take measures to ensure that your use would comply
with your own specific quality control practices and standards, and that your
use would comply with the local rules, laws, regulations, licenses and terms
that apply to you, and your content.