Text Generation
Transformers
Safetensors
English
flygpt
connectome
fruit-fly
drosophila
malecns
recurrent
sparse
tiny-shakespeare
custom_code
Instructions to use QuixiAI/FlyGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuixiAI/FlyGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuixiAI/FlyGPT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("QuixiAI/FlyGPT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use QuixiAI/FlyGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuixiAI/FlyGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuixiAI/FlyGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/QuixiAI/FlyGPT
- SGLang
How to use QuixiAI/FlyGPT 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 "QuixiAI/FlyGPT" \ --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": "QuixiAI/FlyGPT", "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 "QuixiAI/FlyGPT" \ --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": "QuixiAI/FlyGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use QuixiAI/FlyGPT with Docker Model Runner:
docker model run hf.co/QuixiAI/FlyGPT
init: card refresh
Browse files- init/config.json +2 -1
- init/model.safetensors +1 -1
init/config.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
| 20 |
"degree_normalization": true,
|
| 21 |
"init_scale": 1.0,
|
| 22 |
"dtype": "bfloat16",
|
|
|
|
| 23 |
"graph": {
|
| 24 |
"graph_name": "cb5k",
|
| 25 |
"condition": "real",
|
|
@@ -33,6 +34,6 @@
|
|
| 33 |
"status": "init",
|
| 34 |
"condition": "real",
|
| 35 |
"seed": 1,
|
| 36 |
-
"project": "flygpt-v0"
|
| 37 |
}
|
| 38 |
}
|
|
|
|
| 20 |
"degree_normalization": true,
|
| 21 |
"init_scale": 1.0,
|
| 22 |
"dtype": "bfloat16",
|
| 23 |
+
"training_steps": 100000,
|
| 24 |
"graph": {
|
| 25 |
"graph_name": "cb5k",
|
| 26 |
"condition": "real",
|
|
|
|
| 34 |
"status": "init",
|
| 35 |
"condition": "real",
|
| 36 |
"seed": 1,
|
| 37 |
+
"project": "flygpt-v0-100k"
|
| 38 |
}
|
| 39 |
}
|
init/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7495610
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b269cc0bb42081668e2ad8ebc47f543c3386c8baaa225d8dd339773a37d0dba4
|
| 3 |
size 7495610
|