Text Generation
Transformers
PyTorch
Safetensors
English
gpt2
conversational
dynamic
adaptive
text-generation-inference
Instructions to use ayjays132/PHILLNET-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ayjays132/PHILLNET-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ayjays132/PHILLNET-1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ayjays132/PHILLNET-1") model = AutoModelForCausalLM.from_pretrained("ayjays132/PHILLNET-1") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ayjays132/PHILLNET-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ayjays132/PHILLNET-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ayjays132/PHILLNET-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ayjays132/PHILLNET-1
- SGLang
How to use ayjays132/PHILLNET-1 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 "ayjays132/PHILLNET-1" \ --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": "ayjays132/PHILLNET-1", "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 "ayjays132/PHILLNET-1" \ --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": "ayjays132/PHILLNET-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ayjays132/PHILLNET-1 with Docker Model Runner:
docker model run hf.co/ayjays132/PHILLNET-1
Delete trainer_state.json
Browse files- trainer_state.json +0 -32
trainer_state.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"best_metric": null,
|
| 3 |
-
"best_model_checkpoint": null,
|
| 4 |
-
"epoch": 0.016129032258064516,
|
| 5 |
-
"eval_steps": 1,
|
| 6 |
-
"global_step": 1,
|
| 7 |
-
"is_hyper_param_search": false,
|
| 8 |
-
"is_local_process_zero": true,
|
| 9 |
-
"is_world_process_zero": true,
|
| 10 |
-
"log_history": [],
|
| 11 |
-
"logging_steps": 100,
|
| 12 |
-
"max_steps": 186,
|
| 13 |
-
"num_input_tokens_seen": 0,
|
| 14 |
-
"num_train_epochs": 3,
|
| 15 |
-
"save_steps": 1,
|
| 16 |
-
"stateful_callbacks": {
|
| 17 |
-
"TrainerControl": {
|
| 18 |
-
"args": {
|
| 19 |
-
"should_epoch_stop": false,
|
| 20 |
-
"should_evaluate": false,
|
| 21 |
-
"should_log": false,
|
| 22 |
-
"should_save": true,
|
| 23 |
-
"should_training_stop": false
|
| 24 |
-
},
|
| 25 |
-
"attributes": {}
|
| 26 |
-
}
|
| 27 |
-
},
|
| 28 |
-
"total_flos": 93822155378688.0,
|
| 29 |
-
"train_batch_size": 22,
|
| 30 |
-
"trial_name": null,
|
| 31 |
-
"trial_params": null
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|