Text Generation
Transformers
Safetensors
llama
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use izzcw/large_crafting_sft_fail with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use izzcw/large_crafting_sft_fail with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="izzcw/large_crafting_sft_fail") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("izzcw/large_crafting_sft_fail") model = AutoModelForCausalLM.from_pretrained("izzcw/large_crafting_sft_fail") 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
- vLLM
How to use izzcw/large_crafting_sft_fail with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "izzcw/large_crafting_sft_fail" # 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/large_crafting_sft_fail", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/izzcw/large_crafting_sft_fail
- SGLang
How to use izzcw/large_crafting_sft_fail 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/large_crafting_sft_fail" \ --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/large_crafting_sft_fail", "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/large_crafting_sft_fail" \ --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/large_crafting_sft_fail", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use izzcw/large_crafting_sft_fail with Docker Model Runner:
docker model run hf.co/izzcw/large_crafting_sft_fail
Model save
Browse files- README.md +94 -0
- generation_config.json +12 -0
README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: llama3
|
| 4 |
+
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 5 |
+
tags:
|
| 6 |
+
- llama-factory
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
model-index:
|
| 9 |
+
- name: large_crafting_sft_fail
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# large_crafting_sft_fail
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) on the None dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.3223
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
More information needed
|
| 25 |
+
|
| 26 |
+
## Intended uses & limitations
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Training and evaluation data
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Training procedure
|
| 35 |
+
|
| 36 |
+
### Training hyperparameters
|
| 37 |
+
|
| 38 |
+
The following hyperparameters were used during training:
|
| 39 |
+
- learning_rate: 1e-05
|
| 40 |
+
- train_batch_size: 1
|
| 41 |
+
- eval_batch_size: 2
|
| 42 |
+
- seed: 42
|
| 43 |
+
- distributed_type: multi-GPU
|
| 44 |
+
- num_devices: 8
|
| 45 |
+
- gradient_accumulation_steps: 16
|
| 46 |
+
- total_train_batch_size: 128
|
| 47 |
+
- total_eval_batch_size: 16
|
| 48 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 49 |
+
- lr_scheduler_type: cosine
|
| 50 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 51 |
+
- num_epochs: 1.0
|
| 52 |
+
|
| 53 |
+
### Training results
|
| 54 |
+
|
| 55 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 56 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 57 |
+
| 0.5429 | 0.0323 | 50 | 0.4980 |
|
| 58 |
+
| 0.5398 | 0.0646 | 100 | 0.4740 |
|
| 59 |
+
| 0.5484 | 0.0969 | 150 | 0.4833 |
|
| 60 |
+
| 0.5265 | 0.1291 | 200 | 0.4780 |
|
| 61 |
+
| 0.5278 | 0.1614 | 250 | 0.4793 |
|
| 62 |
+
| 0.5259 | 0.1937 | 300 | 0.4519 |
|
| 63 |
+
| 0.5293 | 0.2260 | 350 | 0.4497 |
|
| 64 |
+
| 0.5098 | 0.2583 | 400 | 0.4303 |
|
| 65 |
+
| 0.482 | 0.2906 | 450 | 0.4249 |
|
| 66 |
+
| 0.4683 | 0.3229 | 500 | 0.4224 |
|
| 67 |
+
| 0.4572 | 0.3552 | 550 | 0.4136 |
|
| 68 |
+
| 0.456 | 0.3874 | 600 | 0.4034 |
|
| 69 |
+
| 0.4606 | 0.4197 | 650 | 0.3983 |
|
| 70 |
+
| 0.4285 | 0.4520 | 700 | 0.3874 |
|
| 71 |
+
| 0.4499 | 0.4843 | 750 | 0.3806 |
|
| 72 |
+
| 0.4198 | 0.5166 | 800 | 0.3685 |
|
| 73 |
+
| 0.4208 | 0.5489 | 850 | 0.3661 |
|
| 74 |
+
| 0.4379 | 0.5812 | 900 | 0.3637 |
|
| 75 |
+
| 0.4075 | 0.6134 | 950 | 0.3558 |
|
| 76 |
+
| 0.4121 | 0.6457 | 1000 | 0.3513 |
|
| 77 |
+
| 0.4112 | 0.6780 | 1050 | 0.3454 |
|
| 78 |
+
| 0.4041 | 0.7103 | 1100 | 0.3457 |
|
| 79 |
+
| 0.3852 | 0.7426 | 1150 | 0.3384 |
|
| 80 |
+
| 0.3656 | 0.7749 | 1200 | 0.3340 |
|
| 81 |
+
| 0.384 | 0.8072 | 1250 | 0.3303 |
|
| 82 |
+
| 0.3605 | 0.8395 | 1300 | 0.3276 |
|
| 83 |
+
| 0.3593 | 0.8717 | 1350 | 0.3247 |
|
| 84 |
+
| 0.3624 | 0.9040 | 1400 | 0.3233 |
|
| 85 |
+
| 0.3734 | 0.9363 | 1450 | 0.3229 |
|
| 86 |
+
| 0.3609 | 0.9686 | 1500 | 0.3223 |
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
### Framework versions
|
| 90 |
+
|
| 91 |
+
- Transformers 4.49.0
|
| 92 |
+
- Pytorch 2.5.1+cu124
|
| 93 |
+
- Datasets 3.2.0
|
| 94 |
+
- Tokenizers 0.21.0
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 128000,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
128001,
|
| 6 |
+
128009
|
| 7 |
+
],
|
| 8 |
+
"max_length": 4096,
|
| 9 |
+
"temperature": 0.6,
|
| 10 |
+
"top_p": 0.9,
|
| 11 |
+
"transformers_version": "4.49.0"
|
| 12 |
+
}
|