Instructions to use flylcw/flylcw2-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flylcw/flylcw2-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flylcw/flylcw2-2B") 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("flylcw/flylcw2-2B") model = AutoModelForCausalLM.from_pretrained("flylcw/flylcw2-2B", 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 flylcw/flylcw2-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flylcw/flylcw2-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flylcw/flylcw2-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flylcw/flylcw2-2B
- SGLang
How to use flylcw/flylcw2-2B 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 "flylcw/flylcw2-2B" \ --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": "flylcw/flylcw2-2B", "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 "flylcw/flylcw2-2B" \ --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": "flylcw/flylcw2-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flylcw/flylcw2-2B with Docker Model Runner:
docker model run hf.co/flylcw/flylcw2-2B
flylcw2-2B
flylcw2-2B is a Chinese text-generation model with 1.88B distinct parameters, including the shared token embeddings and output head. It uses the Qwen3.5 text architecture and tokenizer. Training continued from this project's randomly initialized, pretrained checkpoint, followed by supervised instruction tuning.
It is the next generation model of the Seq-Monkey SFT model.
Model and training
| Item | Setting |
|---|---|
| Architecture | Qwen3.5 text model |
| Weights | BF16 SafeTensors |
| Training hardware | 8 ร NVIDIA RTX 6000D |
| Pretraining block size | 1024 tokens |
| SFT encoding limit | 1536 tokens |
| Playground context budget | 4096 / 8192 (default) / 16384 (maximum) tokens |
| Tested input length | 16014 tokens |
| Architectural position limit | 262144 tokens (configuration) |
| SFT supervision | Assistant tokens only, including the chat end token |
The playground budget includes template tokens, conversation history, and reserved output. A smoke test completed generation with 16,014 input tokens and 8 output tokens. Long-context comprehension has yet to be evaluated systematically.
Evaluation
The frozen internal Chinese F set contains 210 scored prompts and 60 open prompts. Models used their own chat formatting and stop tokens, BF16, and a 256-token generation cap. Python was evaluated with isolated unit tests, and SQLite outputs were executed in memory. The open repetition metric measures repeated character trigrams. The flylcw2-2B SFT row reports per-metric peaks across 100 sampled runs (temperature 0.7, top-p 0.9). Other rows report one greedy run.
| Model | Scored tasks | Short length constraints | Arithmetic & math | Python | SQLite | Open stops | Open outputs at cap | Open repetition โ |
|---|---|---|---|---|---|---|---|---|
| flylcw2-2B SFT | 110/210 | 42/60 | 11/60 | 20/20 | 10/10 | 60/60 | 0/60 | 12.3% |
| flylcw2-2B Base | 0/210 | 0/60 | 0/60 | 0/20 | 0/10 | 0/60 | 60/60 | 77.1% |
| My first generation model Seq-Monkey SFT | 0/210 | 0/60 | 0/60 | 0/20 | 0/10 | 0/60 | 60/60 | 84.0% |
| Qwen3.5-2B | 105/210 | 21/60 | 21/60 | 18/20 | 10/10 | 47/60 | 13/60 | 3.7% |
| SmolLM2-1.7B-Instruct | 40/210 | 1/60 | 3/60 | 17/20 | 6/10 | 25/60 | 35/60 | 17.4% |
| Qwen2.5-0.5B-Instruct | 77/210 | 16/60 | 16/60 | 14/20 | 7/10 | 52/60 | 8/60 | 14.9% |
| Qwen2.5-1.5B-Instruct | 101/210 | 16/60 | 29/60 | 19/20 | 10/10 | 58/60 | 2/60 | 4.6% |
Single-GPU inference
Inference ran at batch size 1 on an RTX 6000D with the same Chinese prompt and exactly 64 generated tokens. Latency is the median of five timed runs after warm-up and includes prefill and decoding. Each model tokenizes the prompt independently.
| Model | Median latency | Throughput | Peak allocated memory |
|---|---|---|---|
| flylcw2-2B SFT | 1.057 s | 60.5 tokens/s | 3.79 GiB |
| flylcw2-2B Base | 1.043 s | 61.3 tokens/s | 3.79 GiB |
| My first generation model Seq-Monkey SFT | 0.626 s | 102.2 tokens/s | 2.92 GiB |
| Qwen3.5-2B | 1.041 s | 61.5 tokens/s | 4.41 GiB |
| SmolLM2-1.7B-Instruct | 0.515 s | 124.2 tokens/s | 3.24 GiB |
| Qwen2.5-0.5B-Instruct | 0.531 s | 120.5 tokens/s | 0.96 GiB |
| Qwen2.5-1.5B-Instruct | 0.647 s | 98.9 tokens/s | 2.92 GiB |
Quick start
Use a CUDA environment with Transformers support for Qwen3.5. Keep the complete role-tagged message history when calling the model for a follow-up turn.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_dir = "./flylcw2-2B"
tokenizer = AutoTokenizer.from_pretrained(model_dir, local_files_only=True)
model = AutoModelForCausalLM.from_pretrained(
model_dir, dtype=torch.bfloat16, local_files_only=True
).cuda().eval()
messages = [{"role": "user", "content": "Return only JSON containing your favorite city and today's weather."}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, add_special_tokens=False, return_tensors="pt").to(model.device)
with torch.inference_mode():
tokens = model.generate(**inputs, do_sample=False, max_new_tokens=128, use_cache=True)
print(tokenizer.decode(tokens[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
Limitations
- The strongest 100-run arithmetic and math result was 11/60. Open replies can repeat entire phrases, and stop rates do not measure factual correctness or completeness.
- Results come from one internal Chinese benchmark. SmolLM2 is primarily English-oriented.
- The impact of the additional 14,923 training examples was not isolated in a matched training ablation.
- The checkpoint supports text generation. Review outputs for factual accuracy and suitability before use.
- Arithmetic and mathematics scores (9/60 greedy) are known weaknesses, lower than Qwen2.5-1.5B-Instruct and other public comparisons (29/60).
File integrity
SHA256 checksums cover the weights, configuration, and release documentation.
References
- My first generation model Seq-Monkey SFT
- Qwen3.5-2B
- SmolLM2-1.7B-Instruct
- Qwen2.5-0.5B-Instruct
- Qwen2.5-1.5B-Instruct
- Downloads last month
- 56

