Instructions to use Abeee/Synthetic4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Abeee/Synthetic4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Abeee/Synthetic4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Abeee/Synthetic4") model = AutoModelForCausalLM.from_pretrained("Abeee/Synthetic4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Abeee/Synthetic4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Abeee/Synthetic4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Abeee/Synthetic4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Abeee/Synthetic4
- SGLang
How to use Abeee/Synthetic4 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 "Abeee/Synthetic4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Abeee/Synthetic4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Abeee/Synthetic4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Abeee/Synthetic4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Abeee/Synthetic4 with Docker Model Runner:
docker model run hf.co/Abeee/Synthetic4
Delete Synthetic3/actor_ema
Browse files
Synthetic3/actor_ema/config.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "/notebooks/Synthetic",
|
| 3 |
-
"_remove_final_layer_norm": false,
|
| 4 |
-
"activation_dropout": 0.0,
|
| 5 |
-
"activation_function": "relu",
|
| 6 |
-
"architectures": [
|
| 7 |
-
"OPTForCausalLM"
|
| 8 |
-
],
|
| 9 |
-
"attention_dropout": 0.0,
|
| 10 |
-
"bos_token_id": 2,
|
| 11 |
-
"do_layer_norm_before": true,
|
| 12 |
-
"dropout": 0.1,
|
| 13 |
-
"enable_bias": true,
|
| 14 |
-
"end_token_id": 2,
|
| 15 |
-
"eos_token_id": 2,
|
| 16 |
-
"ffn_dim": 8192,
|
| 17 |
-
"hidden_size": 2048,
|
| 18 |
-
"init_std": 0.02,
|
| 19 |
-
"layer_norm_elementwise_affine": true,
|
| 20 |
-
"layerdrop": 0.0,
|
| 21 |
-
"max_position_embeddings": 2048,
|
| 22 |
-
"model_type": "opt",
|
| 23 |
-
"num_attention_heads": 32,
|
| 24 |
-
"num_hidden_layers": 24,
|
| 25 |
-
"pad_token_id": 2,
|
| 26 |
-
"prefix": "</s>",
|
| 27 |
-
"torch_dtype": "float16",
|
| 28 |
-
"transformers_version": "4.35.2",
|
| 29 |
-
"use_cache": true,
|
| 30 |
-
"vocab_size": 50272,
|
| 31 |
-
"word_embed_proj_dim": 2048
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Synthetic3/actor_ema/merges.txt
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Synthetic3/actor_ema/pytorch_model.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9e6f1e1bbed77fc982673e03543db264383eb2b31c2ca6fcc8ae3a5930782eb8
|
| 3 |
-
size 2631664218
|
|
|
|
|
|
|
|
|
|
|
|
Synthetic3/actor_ema/vocab.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|