Run this model with HF Jobs
Run katanemo/Arch-Function-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/katanemo/Arch-Function-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/katanemo/Arch-Function-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/katanemo/Arch-Function-7B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/katanemo/Arch-Function-7B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use katanemo/Arch-Function-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use katanemo/Arch-Function-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="katanemo/Arch-Function-7B") 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("katanemo/Arch-Function-7B") model = AutoModelForCausalLM.from_pretrained("katanemo/Arch-Function-7B", 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 katanemo/Arch-Function-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "katanemo/Arch-Function-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "katanemo/Arch-Function-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/katanemo/Arch-Function-7B
- SGLang
How to use katanemo/Arch-Function-7B 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 "katanemo/Arch-Function-7B" \ --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": "katanemo/Arch-Function-7B", "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 "katanemo/Arch-Function-7B" \ --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": "katanemo/Arch-Function-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use katanemo/Arch-Function-7B with Docker Model Runner:
docker model run hf.co/katanemo/Arch-Function-7B
Upload README.md
Browse files83 unmodified lines8485868788895 unmodified lines95969798991001011021031041051061071081091101115 unmodified lines11711811912012112216 unmodified lines13914014114214314414514614714814915015115215315415515615715815916016116216316416516616716883 unmodified lines<td>63.41%</td><td>82.93%</td></tr><tr style="text-align: center; vertical-align: middle;"><td>6</td><td>o1-preview-2024-09-12 (Prompt)</td>5 unmodified lines<td>73.17%</td><td>74.60%</td></tr><tr style="text-align: center; vertical-align: middle; font-weight: bold;"><td> </td><td>Arch-Function-7B</td><td>58.44%</td><td>85.58%</td><td>88.14%</td><td>69.08%</td><td>20.50%</td><td>92.68%</td><td>74.05%</td></tr><tr style="text-align: center; vertical-align: middle; "><td>9</td><td>Gemini-1.5-Flash-002 (Prompt)</td>5 unmodified lines<td>85.37%</td><td>78.54%</td></tr><tr style="text-align: center; vertical-align: middle; "><td>12</td><td>Claude-3.5-Sonnet-20240620 (FC)</td>16 unmodified lines<td>75.61%</td><td>49.44%</td></tr><tr style="text-align: center; vertical-align: middle; font-weight: bold;"><td> </td><td>Arch-Function-3B</td><td>56.57%</td><td>83.62%</td><td>85.36%</td><td>66.90%</td><td>19.50%</td><td>97.56%</td><td>70.99%</td></tr></tr><tr style="text-align: center; vertical-align: middle; font-weight: bold;"><td> </td><td>Arch-Function-1.5B</td><td>54.52%</td><td>80.31%</td><td>82.04%</td><td>66.19%</td><td>17.25%</td><td>97.56%</td><td>69.95%</td></tr><tr style="text-align: center; vertical-align: middle; "><td>21</td><td>Llama-3.1-70B-Instruct (Prompt)</td>83 unmodified lines848586878889909192939495969798991005 unmodified lines1061071081091101115 unmodified lines11711811912012112212312412512612712812913013113213316 unmodified lines15015115215315415515615715815916016116216316416516683 unmodified lines<td>63.41%</td><td>82.93%</td></tr><tr style="text-align: center; vertical-align: middle; font-weight: bold;"><td> </td><td>Arch-Function-7B</td><td>59.62%</td><td>86.83%</td><td>88.07%</td><td>71.57%</td><td>21.00%</td><td>95.12%</td><td>73.63%</td></tr><tr style="text-align: center; vertical-align: middle;"><td>6</td><td>o1-preview-2024-09-12 (Prompt)</td>5 unmodified lines<td>73.17%</td><td>74.60%</td></tr><tr style="text-align: center; vertical-align: middle; "><td>9</td><td>Gemini-1.5-Flash-002 (Prompt)</td>5 unmodified lines<td>85.37%</td><td>78.54%</td></tr><tr style="text-align: center; vertical-align: middle; font-weight: bold;"><td> </td><td>Arch-Function-3B</td><td>57.69%</td><td>85.19%</td><td>86.18%</td><td>71.21%</td><td>17.50%</td><td>90.24%</td><td>72.88%</td></tr><tr style="text-align: center; vertical-align: middle; "><td>12</td><td>Claude-3.5-Sonnet-20240620 (FC)</td>16 unmodified lines<td>75.61%</td><td>49.44%</td></tr><tr style="text-align: center; vertical-align: middle; font-weight: bold;"><td> </td><td>Arch-Function-1.5B</td><td>56.20%</td><td>84.40%</td><td>83.96%</td><td>69.36%</td><td>15.88%</td><td>87.80%</td><td>74.39%</td></tr><tr style="text-align: center; vertical-align: middle; "><td>21</td><td>Llama-3.1-70B-Instruct (Prompt)</td>
README.md+29-31