Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/tiny-random-LlamaForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-random-LlamaForCausalLM") 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("SystemAdmin123/tiny-random-LlamaForCausalLM") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM", 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 SystemAdmin123/tiny-random-LlamaForCausalLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-random-LlamaForCausalLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
- SGLang
How to use SystemAdmin123/tiny-random-LlamaForCausalLM 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 "SystemAdmin123/tiny-random-LlamaForCausalLM" \ --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": "SystemAdmin123/tiny-random-LlamaForCausalLM", "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 "SystemAdmin123/tiny-random-LlamaForCausalLM" \ --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": "SystemAdmin123/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
Commit History
-
Training in progress, step 520, checkpoint
Verified signatureb5a3e49 -
Training in progress, step 520
Verified signature7723d07 -
Training in progress, step 500, checkpoint
Verified signaturef7f1aeb -
Training in progress, step 500
Verified signature6e61e18 -
Training in progress, step 480, checkpoint
Verified signaturef4d7107 -
Training in progress, step 480
Verified signature3028261 -
Training in progress, step 460, checkpoint
Verified signature1b90e6a -
Training in progress, step 460
Verified signature7fa0db2 -
Training in progress, step 440, checkpoint
Verified signature2142ff1 -
Training in progress, step 440
Verified signature17d1667 -
Training in progress, step 420, checkpoint
Verified signaturee3916ce -
Training in progress, step 420
Verified signature3981e78 -
Training in progress, step 400, checkpoint
Verified signaturec2a0429 -
Training in progress, step 400
Verified signatureacb7ade -
Training in progress, step 380, checkpoint
Verified signature3e9bc90 -
Training in progress, step 380
Verified signature5238167 -
Training in progress, step 360, checkpoint
Verified signatured1032f3 -
Training in progress, step 360
Verified signaturec85be9c -
Training in progress, step 340, checkpoint
Verified signature8efb0f2 -
Training in progress, step 340
Verified signature58baa54 -
Training in progress, step 320, checkpoint
Verified signature820b41d -
Training in progress, step 320
Verified signatured34b39d -
Training in progress, step 300, checkpoint
Verified signature758bddf -
Training in progress, step 300
Verified signature2858869 -
Training in progress, step 280, checkpoint
Verified signature2aae965 -
Training in progress, step 280
Verified signature09a778c -
Training in progress, step 260, checkpoint
Verified signature0627d3c -
Training in progress, step 260
Verified signature1fdddcf -
Training in progress, step 240, checkpoint
Verified signature0777af7 -
Training in progress, step 240
Verified signatureb6384ef -
Training in progress, step 220, checkpoint
Verified signature157b4ec -
Training in progress, step 220
Verified signature52cca58 -
Training in progress, step 200, checkpoint
Verified signatureb8f0e98 -
Training in progress, step 200
Verified signaturea4e88ee -
Training in progress, step 180, checkpoint
Verified signature0781532 -
Training in progress, step 180
Verified signature518b56b -
Training in progress, step 160, checkpoint
Verified signaturee2aa530 -
Training in progress, step 160
Verified signaturecd5eab2 -
Training in progress, step 140, checkpoint
Verified signature43be1cc -
Training in progress, step 140
Verified signature8e379c7 -
Training in progress, step 120, checkpoint
Verified signatured3eb801 -
Training in progress, step 120
Verified signature0b323b3 -
Training in progress, step 100, checkpoint
Verified signatureae1ed32 -
Training in progress, step 100
Verified signaturecd2d728 -
Training in progress, step 80, checkpoint
Verified signature461fad4 -
Training in progress, step 80
Verified signature0bac1de -
Training in progress, step 60, checkpoint
Verified signature05d3b34 -
Training in progress, step 60
Verified signature849d41b -
Training in progress, step 40, checkpoint
Verified signatureb1cd2eb -
Training in progress, step 40
Verified signature922e85d