Instructions to use aixk/fastplus-50m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aixk/fastplus-50m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aixk/fastplus-50m")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("aixk/fastplus-50m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aixk/fastplus-50m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aixk/fastplus-50m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aixk/fastplus-50m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aixk/fastplus-50m
- SGLang
How to use aixk/fastplus-50m 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 "aixk/fastplus-50m" \ --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": "aixk/fastplus-50m", "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 "aixk/fastplus-50m" \ --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": "aixk/fastplus-50m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aixk/fastplus-50m with Docker Model Runner:
docker model run hf.co/aixk/fastplus-50m
FastPlus Relativistic SVO Dynamic-Soft-Pooling Model Train Completed Safely
Browse files- config.json +19 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- tokenizer_config.json +2 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"FastPlusForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"hidden_size": 544,
|
| 7 |
+
"initializer_range": 0.02,
|
| 8 |
+
"intermediate_size": 1632,
|
| 9 |
+
"kd_alpha": 0.4,
|
| 10 |
+
"kd_temperature": 2.5,
|
| 11 |
+
"max_position_embeddings": 512,
|
| 12 |
+
"model_type": "fastplus",
|
| 13 |
+
"num_attention_heads": 8,
|
| 14 |
+
"num_hidden_layers": 12,
|
| 15 |
+
"tie_word_embeddings": true,
|
| 16 |
+
"transformers_version": "5.12.0",
|
| 17 |
+
"use_cache": false,
|
| 18 |
+
"vocab_size": 15968
|
| 19 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"output_attentions": false,
|
| 4 |
+
"output_hidden_states": false,
|
| 5 |
+
"transformers_version": "5.12.0"
|
| 6 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f9cbb72d4587afc0a4229fbdcc21f598501f96f03273b50c83632d9fe46949c
|
| 3 |
+
size 200139400
|
tokenizer_config.json
CHANGED
|
@@ -6,6 +6,8 @@
|
|
| 6 |
"<|user|>",
|
| 7 |
"<|assistant|>"
|
| 8 |
],
|
|
|
|
|
|
|
| 9 |
"model_max_length": 1000000000000000019884624838656,
|
| 10 |
"pad_token": "<pad>",
|
| 11 |
"tokenizer_class": "TokenizersBackend",
|
|
|
|
| 6 |
"<|user|>",
|
| 7 |
"<|assistant|>"
|
| 8 |
],
|
| 9 |
+
"is_local": false,
|
| 10 |
+
"local_files_only": false,
|
| 11 |
"model_max_length": 1000000000000000019884624838656,
|
| 12 |
"pad_token": "<pad>",
|
| 13 |
"tokenizer_class": "TokenizersBackend",
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ee4858ee4a0f199444a4b3425fb76b620388a3c864946b83c255056759c62c0
|
| 3 |
+
size 5137
|