Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use Khmarigou/Begue with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Khmarigou/Begue with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Khmarigou/Begue") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Khmarigou/Begue") model = AutoModelForCausalLM.from_pretrained("Khmarigou/Begue", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Khmarigou/Begue with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Khmarigou/Begue" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Khmarigou/Begue", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Khmarigou/Begue
- SGLang
How to use Khmarigou/Begue 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 "Khmarigou/Begue" \ --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": "Khmarigou/Begue", "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 "Khmarigou/Begue" \ --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": "Khmarigou/Begue", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Khmarigou/Begue with Docker Model Runner:
docker model run hf.co/Khmarigou/Begue
Commit History
-
Training in progress, step 18
Verified signature6a75e92 -
Training in progress, step 31
Verified signature3937074 -
Training in progress, step 31
Verified signature71d2728 -
Training in progress, step 31
Verified signature9110bec -
Training in progress, step 31
Verified signature3f8f8e5 -
Training in progress, step 31
Verified signatured3daaa4 -
Training in progress, step 31
Verified signature8b5f5da -
Training in progress, step 31
Verified signature1187a05 -
Training in progress, step 155
Verified signatured4372f7 -
Training in progress, step 930
Verified signature90ac1c3 -
Training in progress, step 31
Verified signatured7313e0 -
Training in progress, step 744
Verified signature71c638d -
Training in progress, step 744
Verified signature4be2fc2 -
Training in progress, step 713
Verified signature114d1e6 -
Training in progress, step 713
Verified signatureeb30d76 -
Training in progress, step 682
Verified signature6eabdca -
Training in progress, step 682
Verified signaturea0820fe -
Training in progress, step 651
Verified signature87b8359 -
Training in progress, step 651
Verified signature7ca6b92 -
Training in progress, step 620
Verified signature0d58b3c -
Training in progress, step 620
Verified signatureb52167c -
Training in progress, step 589
Verified signature31d2952 -
Training in progress, step 589
Verified signature3a97a75 -
Training in progress, step 558
Verified signature551fba4 -
Training in progress, step 558
Verified signatureff3094d -
Training in progress, step 527
Verified signature4c7fc24 -
Training in progress, step 527
Verified signature7b772b5 -
Training in progress, step 496
Verified signaturefe5ae29 -
Training in progress, step 465
Verified signaturedaa294e -
Training in progress, step 434
Verified signature2830fbf -
Training in progress, step 403
Verified signaturefc51832 -
Training in progress, step 403
Verified signature92aca28 -
Training in progress, step 372
Verified signature4680132 -
Training in progress, step 372
Verified signatureba6061b -
Training in progress, step 341
Verified signature2ac8c53 -
Training in progress, step 341
Verified signatureb302264 -
Training in progress, step 310
Verified signature0b2b660 -
Training in progress, step 310
Verified signaturecc80dd2 -
Training in progress, step 279
Verified signature3d0b84f -
Training in progress, step 279
Verified signature2c773aa -
Training in progress, step 248
Verified signature8dd6eaa -
Training in progress, step 248
Verified signature5c877ab -
Training in progress, step 217
Verified signature0f0dfb3 -
Training in progress, step 217
Verified signatureceb8b21 -
Training in progress, step 186
Verified signaturecdefdd5 -
Training in progress, step 186
Verified signature14d06c1 -
Training in progress, step 155
Verified signaturea634d9b -
Training in progress, step 155
Verified signaturee407348 -
Training in progress, step 124
Verified signaturef8bd9ba -
Training in progress, step 124
Verified signature0ce906d