Run this model with HF Jobs
Run TheNateTCY/testing_opt_causal_model 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/TheNateTCY/testing_opt_causal_model. 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/TheNateTCY/testing_opt_causal_model 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/TheNateTCY/testing_opt_causal_model. 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/TheNateTCY/testing_opt_causal_model. 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 TheNateTCY/testing_opt_causal_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheNateTCY/testing_opt_causal_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheNateTCY/testing_opt_causal_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheNateTCY/testing_opt_causal_model") model = AutoModelForCausalLM.from_pretrained("TheNateTCY/testing_opt_causal_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheNateTCY/testing_opt_causal_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheNateTCY/testing_opt_causal_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheNateTCY/testing_opt_causal_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheNateTCY/testing_opt_causal_model
- SGLang
How to use TheNateTCY/testing_opt_causal_model 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 "TheNateTCY/testing_opt_causal_model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheNateTCY/testing_opt_causal_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "TheNateTCY/testing_opt_causal_model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheNateTCY/testing_opt_causal_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheNateTCY/testing_opt_causal_model with Docker Model Runner:
docker model run hf.co/TheNateTCY/testing_opt_causal_model
Commit ·
52766e5
1
Parent(s): 69b3b18
Training in progress epoch 0
Browse filesFiles changed (2)
- README.md+4-4
- tf_model.h5+1-1
13 unmodified lines141516171819202113 unmodified lines353637383940414243444546474813 unmodified linesThis model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 10.6976- Validation Loss: 10.1180- Epoch: 0## Model description13 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-05, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-05, 'decay_steps': -969, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}- training_precision: float32### Training results| Train Loss | Validation Loss | Epoch ||:----------:|:---------------:|:-----:|| 10.6976 | 10.1180 | 0 |### Framework versions13 unmodified lines141516171819202113 unmodified lines353637383940414243444546474813 unmodified linesThis model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 5.1036- Validation Loss: 3.1800- Epoch: 0## Model description13 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-05, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-05, 'decay_steps': 562, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}- training_precision: float32### Training results| Train Loss | Validation Loss | Epoch ||:----------:|:---------------:|:-----:|| 5.1036 | 3.1800 | 0 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:87c75b6577329fabd0067dbdd258b95f54a39405fe7aea537171a17e4d3af6fcsize 497935440123version https://git-lfs.github.com/spec/v1oid sha256:c71f5d546136a4d1516917e8006ac55bd4d2a040375667458f221e48a42d4bdesize 497935440
README.md+4-4
tf_model.h5+1-1