Text Generation
Transformers
Safetensors
llama
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0") model = AutoModelForCausalLM.from_pretrained("AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0", 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 AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0
- SGLang
How to use AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0 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 "AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0" \ --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": "AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0", "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 "AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0" \ --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": "AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0 with Docker Model Runner:
docker model run hf.co/AmberYifan/capsdnum-marin-8b-base-code_random_b1000_s0
capmix single-domain code_random_b1000_s0 (marin-8b-base)
Browse files- README.md +1 -1
- all_results.json +5 -5
- checkpoint-16/model.safetensors +1 -1
- checkpoint-16/trainer_state.json +1 -1
- checkpoint-16/training_args.bin +1 -1
- model.safetensors +1 -1
- train_results.json +5 -5
- trainer_log.jsonl +1 -1
- trainer_state.json +6 -6
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
# marin-8b-base_code_random_b1000_s0
|
| 18 |
|
| 19 |
-
This model is a fine-tuned version of [marin-community/marin-8b-base](https://huggingface.co/marin-community/marin-8b-base) on the capsd_marin-8b-base-n80000-
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
# marin-8b-base_code_random_b1000_s0
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [marin-community/marin-8b-base](https://huggingface.co/marin-community/marin-8b-base) on the capsd_marin-8b-base-n80000-opc__mix_code_random_b1000_s0 dataset.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 1.0,
|
| 3 |
-
"total_flos":
|
| 4 |
-
"train_loss": 0.
|
| 5 |
-
"train_runtime":
|
| 6 |
-
"train_samples_per_second": 1.
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 1.0,
|
| 3 |
+
"total_flos": 293928960000.0,
|
| 4 |
+
"train_loss": 0.44835618138313293,
|
| 5 |
+
"train_runtime": 505.4764,
|
| 6 |
+
"train_samples_per_second": 1.978,
|
| 7 |
+
"train_steps_per_second": 0.032
|
| 8 |
}
|
checkpoint-16/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 16060556616
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:890d393c33bb08577646ebfd9e4fccef9a85963af34c7f8008bd615f67df865f
|
| 3 |
size 16060556616
|
checkpoint-16/trainer_state.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
| 26 |
"attributes": {}
|
| 27 |
}
|
| 28 |
},
|
| 29 |
-
"total_flos":
|
| 30 |
"train_batch_size": 2,
|
| 31 |
"trial_name": null,
|
| 32 |
"trial_params": null
|
|
|
|
| 26 |
"attributes": {}
|
| 27 |
}
|
| 28 |
},
|
| 29 |
+
"total_flos": 293928960000.0,
|
| 30 |
"train_batch_size": 2,
|
| 31 |
"trial_name": null,
|
| 32 |
"trial_params": null
|
checkpoint-16/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7761
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:144ab5073ac7c48be0a50e41fdda757cc8d9ffd5204d108bac9f585cf5726e43
|
| 3 |
size 7761
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 16060556616
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:890d393c33bb08577646ebfd9e4fccef9a85963af34c7f8008bd615f67df865f
|
| 3 |
size 16060556616
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 1.0,
|
| 3 |
-
"total_flos":
|
| 4 |
-
"train_loss": 0.
|
| 5 |
-
"train_runtime":
|
| 6 |
-
"train_samples_per_second": 1.
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 1.0,
|
| 3 |
+
"total_flos": 293928960000.0,
|
| 4 |
+
"train_loss": 0.44835618138313293,
|
| 5 |
+
"train_runtime": 505.4764,
|
| 6 |
+
"train_samples_per_second": 1.978,
|
| 7 |
+
"train_steps_per_second": 0.032
|
| 8 |
}
|
trainer_log.jsonl
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"current_steps": 16, "total_steps": 16, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "0:08:
|
|
|
|
| 1 |
+
{"current_steps": 16, "total_steps": 16, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "0:08:25", "remaining_time": "0:00:00"}
|
trainer_state.json
CHANGED
|
@@ -12,11 +12,11 @@
|
|
| 12 |
{
|
| 13 |
"epoch": 1.0,
|
| 14 |
"step": 16,
|
| 15 |
-
"total_flos":
|
| 16 |
-
"train_loss": 0.
|
| 17 |
-
"train_runtime":
|
| 18 |
-
"train_samples_per_second": 1.
|
| 19 |
-
"train_steps_per_second": 0.
|
| 20 |
}
|
| 21 |
],
|
| 22 |
"logging_steps": 50,
|
|
@@ -36,7 +36,7 @@
|
|
| 36 |
"attributes": {}
|
| 37 |
}
|
| 38 |
},
|
| 39 |
-
"total_flos":
|
| 40 |
"train_batch_size": 2,
|
| 41 |
"trial_name": null,
|
| 42 |
"trial_params": null
|
|
|
|
| 12 |
{
|
| 13 |
"epoch": 1.0,
|
| 14 |
"step": 16,
|
| 15 |
+
"total_flos": 293928960000.0,
|
| 16 |
+
"train_loss": 0.44835618138313293,
|
| 17 |
+
"train_runtime": 505.4764,
|
| 18 |
+
"train_samples_per_second": 1.978,
|
| 19 |
+
"train_steps_per_second": 0.032
|
| 20 |
}
|
| 21 |
],
|
| 22 |
"logging_steps": 50,
|
|
|
|
| 36 |
"attributes": {}
|
| 37 |
}
|
| 38 |
},
|
| 39 |
+
"total_flos": 293928960000.0,
|
| 40 |
"train_batch_size": 2,
|
| 41 |
"trial_name": null,
|
| 42 |
"trial_params": null
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7761
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:144ab5073ac7c48be0a50e41fdda757cc8d9ffd5204d108bac9f585cf5726e43
|
| 3 |
size 7761
|