Text Generation
Transformers
Safetensors
English
llama
causal-lm
from-scratch
dpo
chat
conversational
text-generation-inference
Instructions to use dkumar15/aria-1b-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dkumar15/aria-1b-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dkumar15/aria-1b-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("dkumar15/aria-1b-chat") model = AutoModelForCausalLM.from_pretrained("dkumar15/aria-1b-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 dkumar15/aria-1b-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dkumar15/aria-1b-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": "dkumar15/aria-1b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dkumar15/aria-1b-chat
- SGLang
How to use dkumar15/aria-1b-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 "dkumar15/aria-1b-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": "dkumar15/aria-1b-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 "dkumar15/aria-1b-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": "dkumar15/aria-1b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dkumar15/aria-1b-chat with Docker Model Runner:
docker model run hf.co/dkumar15/aria-1b-chat
Commit History
-
Upload training_report.pdf with huggingface_hub
Verified signature459d850 -
Upload training_logs/dpo_log.jsonl with huggingface_hub
Verified signaturea60ad11 -
Upload training_logs/sft_log.jsonl with huggingface_hub
Verified signature2cb7839 -
Upload training_logs/train_log.jsonl with huggingface_hub
Verified signature11cd458 -
Upload training_code/test_sft.py with huggingface_hub
Verified signaturec342850 -
Upload training_code/export_to_hf.py with huggingface_hub
Verified signature097a4d2 -
Upload training_code/inference.py with huggingface_hub
Verified signaturea19b01b -
Upload training_code/chat.py with huggingface_hub
Verified signature5200189 -
Upload training_code/train_dpo.py with huggingface_hub
Verified signaturef099982 -
Upload training_code/train_sft.py with huggingface_hub
Verified signature3f47090 -
Upload training_code/train.py with huggingface_hub
Verified signatured42a1f3 -
Upload training_code/model/__init__.py with huggingface_hub
Verified signature72372ef -
Upload training_code/model/dpo_data.py with huggingface_hub
Verified signature493809a -
Upload training_code/model/sft_data.py with huggingface_hub
Verified signaturef6b92b7 -
Upload training_code/model/data.py with huggingface_hub
Verified signatureeaf2faa -
Upload training_code/model/transformer.py with huggingface_hub
Verified signature5992a18 -
Upload training_code/model/config.py with huggingface_hub
Verified signature1dd2382 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturef6f7e6c -
Upload tokenizer.json with huggingface_hub
Verified signaturef5ccaa6 -
Upload special_tokens_map.json with huggingface_hub
Verified signature6dc4f84 -
Upload model.safetensors with huggingface_hub
Verified signature550da61 -
Upload generation_config.json with huggingface_hub
Verified signature01b7d1c -
Upload config.json with huggingface_hub
Verified signature6520981 -
Upload README.md with huggingface_hub
Verified signatureba7d753 -
initial commit
Verified signature83db370