Text Generation
Transformers
Safetensors
qwen3
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use 3N3G/e3-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 3N3G/e3-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="3N3G/e3-sft") 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("3N3G/e3-sft") model = AutoModelForCausalLM.from_pretrained("3N3G/e3-sft", 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 3N3G/e3-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "3N3G/e3-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "3N3G/e3-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/3N3G/e3-sft
- SGLang
How to use 3N3G/e3-sft 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 "3N3G/e3-sft" \ --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": "3N3G/e3-sft", "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 "3N3G/e3-sft" \ --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": "3N3G/e3-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use 3N3G/e3-sft with Docker Model Runner:
docker model run hf.co/3N3G/e3-sft
Training in progress, step 272
Browse files- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
- trainer_log.jsonl +17 -0
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4969539560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee915e1b5fcd3e71f045efcc9cbc0312102624597c3d974e5f1950163bd6338e
|
| 3 |
size 4969539560
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1912795688
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a36fb710f6fea75a37049aac8d9eacc734dda5a62ef70bf161d89f8941be5c2
|
| 3 |
size 1912795688
|
trainer_log.jsonl
CHANGED
|
@@ -764,3 +764,20 @@
|
|
| 764 |
{"current_steps": 271, "total_steps": 400, "loss": 0.5967, "lr": 3.598217822166854e-08, "epoch": 67.87272727272727, "percentage": 67.75, "elapsed_time": "0:32:53", "remaining_time": "0:15:39"}
|
| 765 |
{"current_steps": 272, "total_steps": 400, "loss": 0.7777, "lr": 3.5627000643626705e-08, "epoch": 68.0, "percentage": 68.0, "elapsed_time": "0:32:56", "remaining_time": "0:15:30"}
|
| 766 |
{"current_steps": 272, "total_steps": 400, "eval_loss": 0.6440867185592651, "epoch": 68.0, "percentage": 68.0, "elapsed_time": "0:32:57", "remaining_time": "0:15:30"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 764 |
{"current_steps": 271, "total_steps": 400, "loss": 0.5967, "lr": 3.598217822166854e-08, "epoch": 67.87272727272727, "percentage": 67.75, "elapsed_time": "0:32:53", "remaining_time": "0:15:39"}
|
| 765 |
{"current_steps": 272, "total_steps": 400, "loss": 0.7777, "lr": 3.5627000643626705e-08, "epoch": 68.0, "percentage": 68.0, "elapsed_time": "0:32:56", "remaining_time": "0:15:30"}
|
| 766 |
{"current_steps": 272, "total_steps": 400, "eval_loss": 0.6440867185592651, "epoch": 68.0, "percentage": 68.0, "elapsed_time": "0:32:57", "remaining_time": "0:15:30"}
|
| 767 |
+
{"current_steps": 273, "total_steps": 400, "loss": 0.6824, "lr": 3.527329839449151e-08, "epoch": 68.2909090909091, "percentage": 68.25, "elapsed_time": "0:33:28", "remaining_time": "0:15:34"}
|
| 768 |
+
{"current_steps": 274, "total_steps": 400, "loss": 0.5956, "lr": 3.49210984100586e-08, "epoch": 68.58181818181818, "percentage": 68.5, "elapsed_time": "0:33:35", "remaining_time": "0:15:27"}
|
| 769 |
+
{"current_steps": 275, "total_steps": 400, "loss": 0.679, "lr": 3.4570427511720395e-08, "epoch": 68.87272727272727, "percentage": 68.75, "elapsed_time": "0:33:43", "remaining_time": "0:15:19"}
|
| 770 |
+
{"current_steps": 276, "total_steps": 400, "loss": 0.7194, "lr": 3.4221312404423483e-08, "epoch": 69.0, "percentage": 69.0, "elapsed_time": "0:33:46", "remaining_time": "0:15:10"}
|
| 771 |
+
{"current_steps": 277, "total_steps": 400, "loss": 0.5994, "lr": 3.387377967463493e-08, "epoch": 69.2909090909091, "percentage": 69.25, "elapsed_time": "0:33:53", "remaining_time": "0:15:02"}
|
| 772 |
+
{"current_steps": 278, "total_steps": 400, "loss": 0.6582, "lr": 3.3527855788317614e-08, "epoch": 69.58181818181818, "percentage": 69.5, "elapsed_time": "0:34:00", "remaining_time": "0:14:55"}
|
| 773 |
+
{"current_steps": 279, "total_steps": 400, "loss": 0.7129, "lr": 3.3183567088914834e-08, "epoch": 69.87272727272727, "percentage": 69.75, "elapsed_time": "0:34:07", "remaining_time": "0:14:47"}
|
| 774 |
+
{"current_steps": 280, "total_steps": 400, "loss": 0.7197, "lr": 3.2840939795343986e-08, "epoch": 70.0, "percentage": 70.0, "elapsed_time": "0:34:10", "remaining_time": "0:14:38"}
|
| 775 |
+
{"current_steps": 281, "total_steps": 400, "loss": 0.6844, "lr": 3.250000000000001e-08, "epoch": 70.2909090909091, "percentage": 70.25, "elapsed_time": "0:34:16", "remaining_time": "0:14:31"}
|
| 776 |
+
{"current_steps": 282, "total_steps": 400, "loss": 0.7062, "lr": 3.2160773666768325e-08, "epoch": 70.58181818181818, "percentage": 70.5, "elapsed_time": "0:34:23", "remaining_time": "0:14:23"}
|
| 777 |
+
{"current_steps": 283, "total_steps": 400, "loss": 0.597, "lr": 3.182328662904756e-08, "epoch": 70.87272727272727, "percentage": 70.75, "elapsed_time": "0:34:30", "remaining_time": "0:14:16"}
|
| 778 |
+
{"current_steps": 284, "total_steps": 400, "loss": 0.6592, "lr": 3.14875645877823e-08, "epoch": 71.0, "percentage": 71.0, "elapsed_time": "0:34:33", "remaining_time": "0:14:07"}
|
| 779 |
+
{"current_steps": 285, "total_steps": 400, "loss": 0.6398, "lr": 3.1153633109505784e-08, "epoch": 71.2909090909091, "percentage": 71.25, "elapsed_time": "0:34:40", "remaining_time": "0:13:59"}
|
| 780 |
+
{"current_steps": 286, "total_steps": 400, "loss": 0.6979, "lr": 3.082151762439292e-08, "epoch": 71.58181818181818, "percentage": 71.5, "elapsed_time": "0:34:47", "remaining_time": "0:13:52"}
|
| 781 |
+
{"current_steps": 287, "total_steps": 400, "loss": 0.6352, "lr": 3.049124342432378e-08, "epoch": 71.87272727272727, "percentage": 71.75, "elapsed_time": "0:34:54", "remaining_time": "0:13:44"}
|
| 782 |
+
{"current_steps": 288, "total_steps": 400, "loss": 0.6391, "lr": 3.0162835660957385e-08, "epoch": 72.0, "percentage": 72.0, "elapsed_time": "0:34:57", "remaining_time": "0:13:35"}
|
| 783 |
+
{"current_steps": 288, "total_steps": 400, "eval_loss": 0.641921877861023, "epoch": 72.0, "percentage": 72.0, "elapsed_time": "0:34:58", "remaining_time": "0:13:36"}
|