Instructions to use FLOPS-Squared/KeystoneFuse-Baseline-Flax with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FLOPS-Squared/KeystoneFuse-Baseline-Flax with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FLOPS-Squared/KeystoneFuse-Baseline-Flax") 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("FLOPS-Squared/KeystoneFuse-Baseline-Flax") model = AutoModelForCausalLM.from_pretrained("FLOPS-Squared/KeystoneFuse-Baseline-Flax", 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 FLOPS-Squared/KeystoneFuse-Baseline-Flax with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FLOPS-Squared/KeystoneFuse-Baseline-Flax" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FLOPS-Squared/KeystoneFuse-Baseline-Flax", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FLOPS-Squared/KeystoneFuse-Baseline-Flax
- SGLang
How to use FLOPS-Squared/KeystoneFuse-Baseline-Flax 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 "FLOPS-Squared/KeystoneFuse-Baseline-Flax" \ --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": "FLOPS-Squared/KeystoneFuse-Baseline-Flax", "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 "FLOPS-Squared/KeystoneFuse-Baseline-Flax" \ --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": "FLOPS-Squared/KeystoneFuse-Baseline-Flax", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FLOPS-Squared/KeystoneFuse-Baseline-Flax with Docker Model Runner:
docker model run hf.co/FLOPS-Squared/KeystoneFuse-Baseline-Flax
Commit History
-
Upload FlaxLlamaForCausalLM
Verified signature2540cf9 -
Checkpoint step 675765
Verified signature482cb6f -
Checkpoint step 670000
Verified signaturee82cca5 -
Checkpoint step 660000
Verified signature9abdc2e -
Checkpoint step 650000
Verified signaturea027a45 -
Checkpoint step 640000
Verified signature287d6f7 -
Checkpoint step 630000
Verified signatured2dc6b2 -
Checkpoint step 620000
Verified signaturedda8014 -
Checkpoint step 610000
Verified signature6d79c3b -
Checkpoint step 600000
Verified signature456640c -
Checkpoint step 590000
Verified signature9f7b842 -
Checkpoint step 580000
Verified signature9dc38dd -
Checkpoint step 570000
Verified signaturedb0708f -
Checkpoint step 560000
Verified signature5256046 -
Checkpoint step 550000
Verified signature0f0d3d4 -
Checkpoint step 540612
Verified signatureb0d5882 -
Checkpoint step 540000
Verified signature94c812f -
Checkpoint step 530000
Verified signature3813dff -
Checkpoint step 520000
Verified signature8f55bfa -
Checkpoint step 510000
Verified signaturee15e96c -
Checkpoint step 500000
Verified signature66db1f2 -
Checkpoint step 490000
Verified signature36f3b6a -
Checkpoint step 480000
Verified signature24e65cc -
Checkpoint step 470000
Verified signature1d4bae9 -
Checkpoint step 460000
Verified signaturedcf31e6 -
Checkpoint step 450000
Verified signature259d1a7 -
Checkpoint step 440000
Verified signaturef651719 -
Checkpoint step 430000
Verified signature64efc29 -
Checkpoint step 420000
Verified signature0beb728 -
Checkpoint step 410000
Verified signature27ee15f -
Checkpoint step 405459
Verified signaturef53cc0d -
Checkpoint step 400000
Verified signature2db6a50 -
Checkpoint step 390000
Verified signaturebf0d843 -
Checkpoint step 380000
Verified signaturea9dae0c -
Checkpoint step 370000
Verified signature8c8eefc -
Checkpoint step 360000
Verified signature0b24b1f -
Checkpoint step 350000
Verified signaturefb7a329
-
Checkpoint step 340000
Verified signaturebf31c84 -
Checkpoint step 330000
Verified signatureac854d1 -
Checkpoint step 320000
Verified signature4f9abc5 -
Checkpoint step 310000
Verified signaturea12c8b5 -
Checkpoint step 300000
Verified signature5f1f754 -
Checkpoint step 290000
Verified signature70d4796 -
Checkpoint step 280000
Verified signature2994f47 -
Checkpoint step 270306
Verified signaturebdae985 -
Checkpoint step 270000
Verified signature3382c78 -
Checkpoint step 260000
Verified signature5994940 -
Checkpoint step 250000
Verified signature74fbfd1 -
Checkpoint step 240000
Verified signatureae21f94 -
Checkpoint step 230000
Verified signaturebd9886e