Instructions to use FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-Flax with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-Flax with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-Flax") model = AutoModelForCausalLM.from_pretrained("FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-Flax", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-Flax
- SGLang
How to use FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-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-B-FuserWidth-32-Instruct-Flax", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-Flax with Docker Model Runner:
docker model run hf.co/FLOPS-Squared/KeystoneFuse-B-FuserWidth-32-Instruct-Flax
Commit History
-
Upload FlaxLlamaForCausalLM
Verified signatureb3707cd -
Checkpoint step 17975
Verified signature7ca601b -
Checkpoint step 14380
Verified signature465d445 -
Checkpoint step 10785
Verified signature70362ad -
Checkpoint step 7190
Verified signature5e30118 -
Checkpoint step 3595
Verified signatured0c9166 -
Checkpoint step 32
Verified signaturecef59b7 -
Checkpoint step 0
Verified signature3b85d8b -
Checkpoint step 32
Verified signature13212d6 -
Checkpoint step 0
Verified signature7cae49c -
Checkpoint step 32
Verified signaturebc15e1a -
Checkpoint step 0
Verified signature637339b -
Checkpoint step 3595
Verified signature767d4f1 -
Checkpoint step 32
Verified signature9d08fa3 -
Checkpoint step 0
Verified signatureee84d68 -
Checkpoint step 14380
Verified signature28a0aac -
Checkpoint step 10785
Verified signature1bbf69b -
Checkpoint step 7190
Verified signatured7c1555 -
Checkpoint step 3595
Verified signaturebd6aa9e -
Checkpoint step 32
Verified signaturec48a228 -
Checkpoint step 0
Verified signature46f39e3 -
Upload tokenizer
Verified signaturea924cbc -
Checkpoint step 32
Verified signature2d16ca0 -
Checkpoint step 0
Verified signature566e9de -
Checkpoint step 32
Verified signature94d0b38 -
Checkpoint step 0
Verified signature210a271 -
Upload tokenizer
Verified signaturea4bd735 -
Checkpoint step 32
Verified signaturecf93a81 -
Checkpoint step 0
Verified signature071a865 -
Checkpoint step 10785
Verified signatureb7fa2a6 -
Checkpoint step 7190
Verified signature5f45c17 -
Checkpoint step 3595
Verified signaturef894988 -
Checkpoint step 32
Verified signature86bdf8b -
Checkpoint step 0
Verified signaturedf9697f -
Checkpoint step 32
Verified signatured42be94 -
Checkpoint step 0
Verified signature3c6f3b2 -
Checkpoint step 32
Verified signature9e6f8e9 -
Checkpoint step 0
Verified signature5cb7ac9 -
Checkpoint step 32
Verified signatureb604e82 -
Checkpoint step 0
Verified signature80b2875 -
Checkpoint step 32
Verified signaturea3b313b -
Checkpoint step 0
Verified signaturef45f20e -
Checkpoint step 32
Verified signaturea707fd0 -
Checkpoint step 0
Verified signature44f1be6 -
Upload FlaxLlamaForCausalLM
Verified signaturef2a51ac -
Checkpoint step 10785
Verified signaturea18e469 -
Checkpoint step 7190
Verified signaturef5a37e6 -
Checkpoint step 3595
Verified signature0fb0e4d -
Checkpoint step 32
Verified signaturebc7bbb2 -
Checkpoint step 0
Verified signature2595ee6