Text Generation
Transformers
TensorBoard
Safetensors
llama
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use izzcw/final_combined_mc_data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use izzcw/final_combined_mc_data with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="izzcw/final_combined_mc_data") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("izzcw/final_combined_mc_data") model = AutoModelForCausalLM.from_pretrained("izzcw/final_combined_mc_data", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use izzcw/final_combined_mc_data with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "izzcw/final_combined_mc_data" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "izzcw/final_combined_mc_data", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/izzcw/final_combined_mc_data
- SGLang
How to use izzcw/final_combined_mc_data 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 "izzcw/final_combined_mc_data" \ --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": "izzcw/final_combined_mc_data", "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 "izzcw/final_combined_mc_data" \ --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": "izzcw/final_combined_mc_data", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use izzcw/final_combined_mc_data with Docker Model Runner:
docker model run hf.co/izzcw/final_combined_mc_data
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 8.955223880597014, | |
| "eval_steps": 50, | |
| "global_step": 80, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.1194029850746268, | |
| "grad_norm": 12.171414081678625, | |
| "learning_rate": 9.980973490458728e-06, | |
| "loss": 1.0602, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 2.2388059701492535, | |
| "grad_norm": 5.102956254122534, | |
| "learning_rate": 9.330127018922195e-06, | |
| "loss": 0.4908, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 3.3582089552238807, | |
| "grad_norm": 3.0060478102356094, | |
| "learning_rate": 7.86788218175523e-06, | |
| "loss": 0.224, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 4.477611940298507, | |
| "grad_norm": 2.451051410299596, | |
| "learning_rate": 5.8682408883346535e-06, | |
| "loss": 0.1026, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 5.597014925373134, | |
| "grad_norm": 1.885409477326922, | |
| "learning_rate": 3.705904774487396e-06, | |
| "loss": 0.0593, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 5.597014925373134, | |
| "eval_loss": 0.7355796694755554, | |
| "eval_runtime": 1.1864, | |
| "eval_samples_per_second": 18.543, | |
| "eval_steps_per_second": 2.529, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 6.7164179104477615, | |
| "grad_norm": 1.2736191437207434, | |
| "learning_rate": 1.7860619515673034e-06, | |
| "loss": 0.0265, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 7.835820895522388, | |
| "grad_norm": 1.2918144398905065, | |
| "learning_rate": 4.6846106481675035e-07, | |
| "loss": 0.012, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 8.955223880597014, | |
| "grad_norm": 0.3695610719057999, | |
| "learning_rate": 0.0, | |
| "loss": 0.006, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 8.955223880597014, | |
| "step": 80, | |
| "total_flos": 37587570917376.0, | |
| "train_loss": 0.2476747315376997, | |
| "train_runtime": 2030.6526, | |
| "train_samples_per_second": 5.264, | |
| "train_steps_per_second": 0.039 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 80, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 10, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 37587570917376.0, | |
| "train_batch_size": 1, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |