Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use Khmarigou/Begue4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Khmarigou/Begue4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Khmarigou/Begue4") 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/Begue4") model = AutoModelForCausalLM.from_pretrained("Khmarigou/Begue4", 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/Begue4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Khmarigou/Begue4" # 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/Begue4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Khmarigou/Begue4
- SGLang
How to use Khmarigou/Begue4 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/Begue4" \ --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/Begue4", "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/Begue4" \ --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/Begue4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Khmarigou/Begue4 with Docker Model Runner:
docker model run hf.co/Khmarigou/Begue4
Commit History
-
Upload LlamaForCausalLM
Verified signature29bd78e -
End of training
Verified signaturea228352 -
Model save
Verified signature7d72dec -
Training in progress, step 1000
Verified signaturef9d5c7e -
Training in progress, step 992
Verified signatured87a888 -
Training in progress, step 961
Verified signaturebbe87d5 -
Training in progress, step 930
Verified signature8c4758a -
Training in progress, step 899
Verified signature834fe02 -
Training in progress, step 868
Verified signature23d0678 -
Training in progress, step 837
Verified signature08b45cd -
Training in progress, step 806
Verified signature90299cc -
Training in progress, step 775
Verified signature76ef8d8 -
Training in progress, step 744
Verified signatured904710 -
Training in progress, step 713
Verified signature1172e8b -
Training in progress, step 682
Verified signature49e8032 -
Training in progress, step 651
Verified signature7c8abd9 -
Training in progress, step 620
Verified signature58f5f2c -
Training in progress, step 589
Verified signaturecebee59 -
Training in progress, step 558
Verified signature232e909 -
Training in progress, step 527
Verified signature6c826a3 -
Training in progress, step 496
Verified signature1a19b45 -
Training in progress, step 465
Verified signature3df8192 -
Training in progress, step 434
Verified signaturefeba952 -
Training in progress, step 403
Verified signature2633228 -
Training in progress, step 372
Verified signature3b08832 -
Training in progress, step 341
Verified signature44bb52e -
Training in progress, step 310
Verified signature47630ac -
Training in progress, step 279
Verified signaturebdd8e77 -
Training in progress, step 248
Verified signature3c5d235 -
Training in progress, step 217
Verified signaturea19129f -
Training in progress, step 186
Verified signature642ee3a -
Training in progress, step 155
Verified signaturef398292 -
Training in progress, step 124
Verified signature2fa54fc -
Training in progress, step 93
Verified signature418abb8 -
Training in progress, step 31
Verified signaturebccf985 -
Training in progress, step 124
Verified signaturee05963f -
Training in progress, step 93
Verified signature8b01a01 -
Training in progress, step 62
Verified signature025c1b0 -
Training in progress, step 31
Verified signaturef0129c0 -
initial commit
Verified signature070c965