Text Generation
Transformers
TensorBoard
Safetensors
gpt2
trl
sft
Generated from Trainer
conversational
text-generation-inference
Instructions to use BEGADE/chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BEGADE/chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BEGADE/chat") 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("BEGADE/chat") model = AutoModelForCausalLM.from_pretrained("BEGADE/chat", 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 BEGADE/chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BEGADE/chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BEGADE/chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BEGADE/chat
- SGLang
How to use BEGADE/chat 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 "BEGADE/chat" \ --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": "BEGADE/chat", "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 "BEGADE/chat" \ --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": "BEGADE/chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BEGADE/chat with Docker Model Runner:
docker model run hf.co/BEGADE/chat
Commit History
-
Model save
Verified signature2420f7b -
Training in progress, step 800
Verified signature10b5c8f -
Training in progress, step 600
Verified signaturebd81347 -
Training in progress, step 400
Verified signature81c7ecf -
Training in progress, step 200
Verified signature4835a06 -
Model save
Verified signature079c9d4 -
Training in progress, step 22
Verified signaturebb2c53a
-
Model save
Verified signature14085e4 -
Training in progress, step 232
Verified signature28a4327 -
Training in progress, step 200
Verified signaturecdd0a16 -
Training in progress, step 200
Verified signaturea73b00d -
Model save
Verified signature914590a -
Training in progress, step 440
Verified signaturef2a51e9 -
Training in progress, step 400
Verified signature076111e -
Training in progress, step 200
Verified signature7fd4ab2 -
Training in progress, step 350
Verified signaturea7ce1e9 -
Training in progress, step 200
Verified signatureba0e54c
-
Training in progress, step 350
Verified signature44f80db -
Training in progress, step 200
Verified signature430bb6c
-
Model save
Verified signature5085372 -
Training in progress, step 350
Verified signature37f17ab -
Training in progress, step 200
Verified signaturebd3cf71
-
Model save
Verified signature10a6b98 -
Training in progress, step 98
Verified signature641b0f7 -
Model save
Verified signaturebacf11a -
Training in progress, step 28
Verified signature4be670b
-
Training in progress, epoch 6
Verified signature752f1dc -
Training in progress, epoch 4
Verified signature91885f1 -
Training in progress, epoch 4
Verified signaturecf86570 -
Training in progress, epoch 2
Verified signature5a8d1e2 -
Training in progress, epoch 2
Verified signature4d7b68e -
Training in progress, epoch 0
Verified signaturec956cf1 -
initial commit
Verified signatureda815fa