Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Run this model with HF Jobs
Run SystemAdmin123/tiny-random-LlamaForCausalLM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
Training in progress, step 400, checkpoint
Browse filesFiles changed (6)
123version https://git-lfs.github.com/spec/v1oid sha256:e64c8f22073f810e14ea11a51c997d214e79493ceb718231c712f6890686cd0asize 2066752123version https://git-lfs.github.com/spec/v1oid sha256:02e5d1b25f242c4059e38af761fe20109094cf4ff071e1b42eae5fe27d3898d9size 2066752
123version https://git-lfs.github.com/spec/v1oid sha256:5f58b607dd2bb3376b1a270f24d36d7e6ad6b3fbcf77fb0f3a3fa5f5a10a5ee3size 2162798123version https://git-lfs.github.com/spec/v1oid sha256:7d3a2fe70770abb05b9a17211f4d92b1c5c9b9326c74929f9fd7a6b607ab5e01size 2162798
123version https://git-lfs.github.com/spec/v1oid sha256:cb5daaf1199744204be7b2c0227bbbc86b8f02198eb2753856850454b418ba43size 14512123version https://git-lfs.github.com/spec/v1oid sha256:8de433ccc2eb550cd1203215b586d51ab7806aea1bd10df48f783bc82071b584size 14512
123version https://git-lfs.github.com/spec/v1oid sha256:0ef0a11ec368bc2c0da98c701c736f96e203337d9c97fab18e13b92ce5dd6d5bsize 14512123version https://git-lfs.github.com/spec/v1oid sha256:2af68b5e1729c4169c5bcdf83d662c94d2aac05a4d0e5f5a1fd64f69c1c27280size 14512
123version https://git-lfs.github.com/spec/v1oid sha256:972684576ff55802aec9ad573b837fe663d45ec783d38050b5b6dc1fc7271117size 1064123version https://git-lfs.github.com/spec/v1oid sha256:0e4c78e85c4ba926d25150d4aaddeaf5728dcb066f4afc01202e3e56f29a5487size 1064
123456789306 unmodified lines31631731831932032113 unmodified lines335336337338339340341{"best_metric": null,"best_model_checkpoint": null,"epoch": 26.923076923076923,"eval_steps": 50,"global_step": 350,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,306 unmodified lines"eval_samples_per_second": 285.129,"eval_steps_per_second": 4.559,"step": 350}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 143205492326400.0,"train_batch_size": 32,"trial_name": null,"trial_params": null123456789306 unmodified lines31631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336413 unmodified lines378379380381382383384{"best_metric": null,"best_model_checkpoint": null,"epoch": 30.76923076923077,"eval_steps": 50,"global_step": 400,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,306 unmodified lines"eval_samples_per_second": 285.129,"eval_steps_per_second": 4.559,"step": 350},{"epoch": 27.692307692307693,"grad_norm": 0.416015625,"learning_rate": 7.54514512859201e-05,"loss": 9.186,"step": 360},{"epoch": 28.46153846153846,"grad_norm": 0.412109375,"learning_rate": 7.014851889983057e-05,"loss": 9.182,"step": 370},{"epoch": 29.23076923076923,"grad_norm": 0.416015625,"learning_rate": 6.493624448072457e-05,"loss": 9.1823,"step": 380},{"epoch": 30.0,"grad_norm": 0.4140625,"learning_rate": 5.983045753470308e-05,"loss": 9.1806,"step": 390},{"epoch": 30.76923076923077,"grad_norm": 0.419921875,"learning_rate": 5.484666416891109e-05,"loss": 9.18,"step": 400},{"epoch": 30.76923076923077,"eval_loss": 9.195965766906738,"eval_runtime": 5.2708,"eval_samples_per_second": 284.775,"eval_steps_per_second": 4.553,"step": 400}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 163663419801600.0,"train_batch_size": 32,"trial_name": null,"trial_params": null
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state_0.pth+1-1
last-checkpoint/rng_state_1.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+46-3