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
-
End of training
Verified signature0cd0553 -
Model save
Verified signatureb90719b -
Training in progress, step 18
Verified signature6a75e92 -
End of training
Verified signatured51c175 -
Model save
Verified signature581f311 -
Training in progress, step 2000
Verified signatureb256c30 -
Training in progress, step 1984
Verified signature5bfe52b -
Training in progress, step 1953
Verified signature71ef4dc -
Training in progress, step 1922
Verified signaturec6a1766 -
Training in progress, step 1891
Verified signature9f1dfed -
Training in progress, step 1860
Verified signature391846b -
Training in progress, step 1829
Verified signature0d15576 -
Training in progress, step 1798
Verified signature80f7e5a -
Training in progress, step 1767
Verified signature6b8a7fc -
Training in progress, step 1736
Verified signaturee95d79e -
Training in progress, step 1705
Verified signature0e5d438 -
Training in progress, step 1674
Verified signatured85fd35 -
Training in progress, step 1643
Verified signature2a69bf1 -
Training in progress, step 1612
Verified signature81305d6 -
Training in progress, step 1581
Verified signature8b15b5a -
Training in progress, step 1550
Verified signature47a6362 -
Training in progress, step 1519
Verified signature320d959 -
Training in progress, step 1488
Verified signature55a918c -
Training in progress, step 1457
Verified signatureeefcd9c -
Training in progress, step 1426
Verified signaturebbdfc69 -
Training in progress, step 1395
Verified signaturee0095a8 -
Training in progress, step 1364
Verified signature3de4246 -
Training in progress, step 1333
Verified signaturee06ea0f -
Training in progress, step 1302
Verified signature5979dbc -
Training in progress, step 1271
Verified signaturee54c9e2 -
Training in progress, step 1240
Verified signaturec256fe8 -
Training in progress, step 1209
Verified signature55be95e -
Training in progress, step 1178
Verified signatured8c1a09 -
Training in progress, step 1147
Verified signatureae9fce1 -
Training in progress, step 1116
Verified signatureb668b56 -
Training in progress, step 1085
Verified signature4c81806 -
Training in progress, step 1054
Verified signature1e5cfd4 -
Training in progress, step 1023
Verified signaturee13b52c -
Training in progress, step 992
Verified signature440e629 -
Training in progress, step 961
Verified signature07beac5 -
Training in progress, step 930
Verified signature338678c -
Training in progress, step 899
Verified signature3e62e53 -
Training in progress, step 868
Verified signature25b163e -
Training in progress, step 837
Verified signatureaa38ff3 -
Training in progress, step 806
Verified signature59de43d -
Training in progress, step 775
Verified signaturec5bf6e6 -
Training in progress, step 744
Verified signature9351998 -
Training in progress, step 713
Verified signature0667cf2 -
Training in progress, step 682
Verified signature8e16303 -
Training in progress, step 651
Verified signature3965d8a