Text Generation
Transformers
Safetensors
llama
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Run this model with HF Jobs
Run SimpleBerry/LLaMA-O1-Supervised-1129 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/SimpleBerry/LLaMA-O1-Supervised-1129. 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/SimpleBerry/LLaMA-O1-Supervised-1129 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/SimpleBerry/LLaMA-O1-Supervised-1129. 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/SimpleBerry/LLaMA-O1-Supervised-1129. 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 SimpleBerry/LLaMA-O1-Supervised-1129 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SimpleBerry/LLaMA-O1-Supervised-1129 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SimpleBerry/LLaMA-O1-Supervised-1129") 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("SimpleBerry/LLaMA-O1-Supervised-1129") model = AutoModelForCausalLM.from_pretrained("SimpleBerry/LLaMA-O1-Supervised-1129", 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 SimpleBerry/LLaMA-O1-Supervised-1129 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SimpleBerry/LLaMA-O1-Supervised-1129" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SimpleBerry/LLaMA-O1-Supervised-1129", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SimpleBerry/LLaMA-O1-Supervised-1129
- SGLang
How to use SimpleBerry/LLaMA-O1-Supervised-1129 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 "SimpleBerry/LLaMA-O1-Supervised-1129" \ --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": "SimpleBerry/LLaMA-O1-Supervised-1129", "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 "SimpleBerry/LLaMA-O1-Supervised-1129" \ --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": "SimpleBerry/LLaMA-O1-Supervised-1129", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SimpleBerry/LLaMA-O1-Supervised-1129 with Docker Model Runner:
docker model run hf.co/SimpleBerry/LLaMA-O1-Supervised-1129
Di Zhang commited on
Update README.md
Browse files290 unmodified lines291292293290 unmodified linesβββ conclusionβββ \boxed{6}```290 unmodified lines291292293294295296297298299300301302303304305306307308309310311312313314315316290 unmodified linesβββ conclusionβββ \boxed{6}``````mermaidgraph TDA[Problem: If Diana needs to bike 10 miles to reach home and she can bike at a speed of 3 mph for two hours before getting tired, and then at a speed of 1 mph until she reaches home, how long will it take her to get home?] --> B[Let's start by understanding the problem. Diana needs to bike a total of 10 miles, and we know her biking speeds at different stages. We will break down the problem into smaller parts: first, calculate the distance she can cover at her initial speed, then calculate the time taken at her slower speed to reach home.]B --> C[First, we need to determine how far Diana can bike at her initial speed of 3 mph for 2 hours. This will help us understand how much distance she has covered before getting tired.]C --> D[To find the distance covered at 3 mph for 2 hours, we use the formula: Distance = Speed Γ Time. Therefore, Distance = 3 mph Γ 2 hours = 6 miles.]D --> E[Diana can cover 6 miles in the first 2 hours.]B --> F[Now we need to determine how far Diana has left to bike after the first 2 hours. This will help us calculate the remaining time she needs to cover the remaining distance.]F --> G[Diana has 10 miles total and has already biked 6 miles. Thus, the remaining distance is: 10 miles - 6 miles = 4 miles.]G --> H[Diana has 4 miles left to bike.]B --> I[Next, we need to calculate how long it will take Diana to bike the remaining 4 miles at her slower speed of 1 mph.]I --> J[To find the time taken to cover the remaining distance at 1 mph, we use the formula: Time = Distance / Speed. Therefore, Time = 4 miles / 1 mph = 4 hours.]J --> K[Diana will take 4 hours to bike the remaining 4 miles at her slower speed.]B --> L[Now, we combine the time taken in both stages: 2 hours (initial speed) + 4 hours (slower speed) = 6 hours.]L --> M[The total time it will take Diana to reach home is 6 hours.]M --> N[Let's review the calculations to ensure accuracy. The distance covered at the initial speed and the time taken at the slower speed seem correct. The final addition of the times also checks out.]M --> O[To enhance clarity, we can rephrase the conclusion to explicitly state the total biking time and the distance covered at each speed.]O --> P[In conclusion, Diana will take a total of 6 hours to bike 10 miles, covering 6 miles in the first 2 hours at a speed of 3 mph and the remaining 4 miles at a speed of 1 mph, which takes an additional 4 hours.]P --> Q[\boxed{6}]class A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q positive```
README.md+23