Views
No views yet

[!WARNING] WARNING: ALIA-40b-Instruct is an instruction-tuned model with a preliminary alignment process. It has not yet undergone a full alignment procedure to ensure safety. The model may generate biased, factually incorrect, harmful, or inappropriate content. Users should refer to the Limitations section and apply additional filtering and alignment processes before deploying this model in production.
[!NOTE] Work In Progress New versions will be available during the coming weeks/months.Sampling Parameters: For optimal performance, we recommend using temperatures close to zero (0 - 0.2). Additionally, we advise against using any type of repetition penalty, as from our experience, it negatively impacts instructed model's responses.
.gguf file for full portability.1# Go to the llama.cpp directory
2cd llama.cpp
3
4# (Optional) Create a Python virtual environment
5python -m venv venv
6source venv/bin/activate
7
8# Install dependencies required for conversion
9pip install -r requirements.txt1# Convert Hugging Face model to GGUF (BF16 precision)
2python3 convert_hf_to_gguf.py /path/to/hf_model \
3 --outfile /gpfs/path/to/output/ALIA-40b-instruct_bos_bf16.gguf \
4 --outtype bf16🛠️ Skip the next section if you already have a build.
1# Create and enter a build directory
2mkdir build && cd build
3
4# Configure and compile with CUDA support (optional)
5cmake .. -DGGML_CUDA=ON -DGGML_NATIVE=OFF \
6 -DCMAKE_VERBOSE_MAKEFILE=ON \
7 -DCMAKE_BUILD_TYPE=Release
8
9# Build with parallel jobs (adjust -j as needed)
10cmake --build . --config Release --verbose -j 121# Quantize the GGUF model
2# Run this from the llama.cpp directory
3
4QU=Q8_0 # Change to Q4_K_M, Q5_K_S, etc. as needed
5
6./build/bin/llama-quantize \
7 /gpfs/path/to/output/ALIA-40b-instruct_bos_bf16.gguf \
8 /gpfs/path/to/output/ALIA-40b-instruct_bos_${QU}.gguf \
9 ${QU}README.md)?{{- bos_token }}{%- if messages[0]['role'] == 'system' %}{%- set system_message = messages[0]['content'] %}{%- set loop_messages = messages[1:] %}{{ '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}{%- else %}{%- set loop_messages = messages %}{%- endif %}{% for message in loop_messages %}{%- if (message['role'] != 'user') and (message['role'] != 'assistant')%}{{ raise_exception('Only user and assistant roles are suported after the initial optional system message.') }}{% endif %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}