Instructions to use RichardErkhov/Commencis_-_Commencis-LLM-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RichardErkhov/Commencis_-_Commencis-LLM-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/Commencis_-_Commencis-LLM-gguf with Ollama:
ollama run hf.co/RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use RichardErkhov/Commencis_-_Commencis-LLM-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/Commencis_-_Commencis-LLM-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/Commencis_-_Commencis-LLM-gguf:Q4_K_M
Run and chat with the model
lemonade run user.Commencis_-_Commencis-LLM-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
Commencis-LLM - GGUF
- Model creator: https://huggingface.co/Commencis/
- Original model: https://huggingface.co/Commencis/Commencis-LLM/
| Name | Quant method | Size |
|---|---|---|
| Commencis-LLM.Q2_K.gguf | Q2_K | 2.53GB |
| Commencis-LLM.IQ3_XS.gguf | IQ3_XS | 2.81GB |
| Commencis-LLM.IQ3_S.gguf | IQ3_S | 2.96GB |
| Commencis-LLM.Q3_K_S.gguf | Q3_K_S | 2.95GB |
| Commencis-LLM.IQ3_M.gguf | IQ3_M | 3.06GB |
| Commencis-LLM.Q3_K.gguf | Q3_K | 3.28GB |
| Commencis-LLM.Q3_K_M.gguf | Q3_K_M | 3.28GB |
| Commencis-LLM.Q3_K_L.gguf | Q3_K_L | 3.56GB |
| Commencis-LLM.IQ4_XS.gguf | IQ4_XS | 3.67GB |
| Commencis-LLM.Q4_0.gguf | Q4_0 | 3.83GB |
| Commencis-LLM.IQ4_NL.gguf | IQ4_NL | 3.87GB |
| Commencis-LLM.Q4_K_S.gguf | Q4_K_S | 3.86GB |
| Commencis-LLM.Q4_K.gguf | Q4_K | 4.07GB |
| Commencis-LLM.Q4_K_M.gguf | Q4_K_M | 4.07GB |
| Commencis-LLM.Q4_1.gguf | Q4_1 | 4.24GB |
| Commencis-LLM.Q5_0.gguf | Q5_0 | 4.65GB |
| Commencis-LLM.Q5_K_S.gguf | Q5_K_S | 4.65GB |
| Commencis-LLM.Q5_K.gguf | Q5_K | 4.78GB |
| Commencis-LLM.Q5_K_M.gguf | Q5_K_M | 4.78GB |
| Commencis-LLM.Q5_1.gguf | Q5_1 | 5.07GB |
| Commencis-LLM.Q6_K.gguf | Q6_K | 5.53GB |
| Commencis-LLM.Q8_0.gguf | Q8_0 | 7.17GB |
Original model description:
license: apache-2.0 datasets: - uonlp/CulturaX language: - tr - en pipeline_tag: text-generation metrics: - accuracy - bleu base_model: mistralai/Mistral-7B-Instruct-v0.1
Commencis-LLM
Commencis LLM is a generative model based on the Mistral 7B model. The base model adapts Mistral 7B to Turkish Banking specifically by training on a diverse dataset obtained through various methods, encompassing general Turkish and banking data.
Model Description
- Developed by: Commencis
- Language(s): Turkish
- Finetuned from model: Mistral 7B
- Blog Post: LLM Blog
Training Details
Alignment phase consists of two stages: supervised fine-tuning (SFT) and Reward Modeling with Reinforcement learning from human feedback (RLHF).
The SFT phase was done on the a mixture of synthetic datasets generated from comprehensive banking dictionary data, synthetic datasets generated from banking-based domain and sub-domain headings, and derived from the CulturaX Turkish dataset by filtering. It was trained with three epochs. We used a learning rate 2e-5, lora rank 64 and maximum sequence length 1024 tokens.
Usage
Suggested Inference Parameters
- Temperature: 0.5
- Repetition penalty: 1.0
- Top-p: 0.9
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
class TextGenerationAssistant:
def __init__(self, model_id:str):
self.tokenizer = AutoTokenizer.from_pretrained(model_id)
self.model = AutoModelForCausalLM.from_pretrained(model_id, device_map='auto',load_in_8bit=True,load_in_4bit=False)
self.pipe = pipeline("text-generation",
model=self.model,
tokenizer=self.tokenizer,
device_map="auto",
max_new_tokens=1024,
return_full_text=True,
repetition_penalty=1.0
)
self.sampling_params = dict(do_sample=True, temperature=0.5, top_k=50, top_p=0.9)
self.system_prompt = "Sen yardımcı bir asistansın. Sana verilen talimat ve girdilere en uygun cevapları üreteceksin. \n\n\n"
def format_prompt(self, user_input):
return "[INST] " + self.system_prompt + user_input + " [/INST]"
def generate_response(self, user_query):
prompt = self.format_prompt(user_query)
outputs = self.pipe(prompt, **self.sampling_params)
return outputs[0]["generated_text"].split("[/INST]")[1].strip()
assistant = TextGenerationAssistant(model_id="Commencis/Commencis-LLM")
# Enter your query here.
user_query = "Faiz oranı yükseldiğinde kredi maliyetim nasıl etkilenir?"
response = assistant.generate_response(user_query)
print(response)
Chat Template
from transformers import AutoTokenizer
import transformers
import torch
model = "Commencis/Commencis-LLM"
messages = [{"role": "user", "content": "Faiz oranı yükseldiğinde kredi maliyetim nasıl etkilenir?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=1024, do_sample=True, temperature=0.5, top_k=50, top_p=0.9)
print (outputs[0]["generated_text"].split("[/INST]")[1].strip())
Quantized Models:
GGUF: https://huggingface.co/Commencis/Commencis-LLM-GGUF
Bias, Risks, and Limitations
Like all LLMs, Commencis-LLM has certain limitations:
- Hallucination: Model may sometimes generate responses that contain plausible-sounding but factually incorrect or irrelevant information.
- Code Switching: The model might unintentionally switch between languages or dialects within a single response, affecting the coherence and understandability of the output.
- Repetition: The Model may produce repetitive phrases or sentences, leading to less engaging and informative responses.
- Coding and Math: The model's performance in generating accurate code or solving complex mathematical problems may be limited.
- Toxicity: The model could inadvertently generate responses containing inappropriate or harmful content.
- Downloads last month
- 107
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit