Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
unsloth
trl
conversational
4-bit precision
bitsandbytes
Instructions to use justsomerandomdude264/Math_Homework_Solver_Llama318B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justsomerandomdude264/Math_Homework_Solver_Llama318B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="justsomerandomdude264/Math_Homework_Solver_Llama318B") 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("justsomerandomdude264/Math_Homework_Solver_Llama318B") model = AutoModelForCausalLM.from_pretrained("justsomerandomdude264/Math_Homework_Solver_Llama318B", 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 justsomerandomdude264/Math_Homework_Solver_Llama318B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "justsomerandomdude264/Math_Homework_Solver_Llama318B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justsomerandomdude264/Math_Homework_Solver_Llama318B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/justsomerandomdude264/Math_Homework_Solver_Llama318B
- SGLang
How to use justsomerandomdude264/Math_Homework_Solver_Llama318B 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 "justsomerandomdude264/Math_Homework_Solver_Llama318B" \ --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": "justsomerandomdude264/Math_Homework_Solver_Llama318B", "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 "justsomerandomdude264/Math_Homework_Solver_Llama318B" \ --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": "justsomerandomdude264/Math_Homework_Solver_Llama318B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use justsomerandomdude264/Math_Homework_Solver_Llama318B with Docker Model Runner:
docker model run hf.co/justsomerandomdude264/Math_Homework_Solver_Llama318B
Commit History
-
Update README.md
Verified signature87ef534
-
Update README.md
Verified signature5f0df3e -
Update README.md
Verified signature5bac16c
-
Update README.md
Verified signature004d738 -
Update README.md
Verified signature76957c2 -
Update README.md
Verified signature12a43d2
-
Added model adapters file
2656fe1 -
Update config.json
Verified signature86535f2 -
Update config.json
Verified signature280a0d2 -
Update config.json
Verified signature45fa4ff -
Update config.json
Verified signature503e9b7 -
Update config.json
Verified signature276ebf3 -
Update config.json
Verified signature0c1e392 -
Update config.json
Verified signatureba5c827 -
Update config.json
Verified signaturec706d71 -
Update config.json
Verified signaturec656a45
-
Add tokenizer files
ef00002 -
Create README.md
Verified signaturec34fa85 -
Added merged adapters file
8072b90 -
Delete config.json
Verified signature7617c72 -
Update config.json
Verified signaturef7b53f7
-
Create config.json
Verified signature0f56d7c -
Update README.md
Verified signature1c2ec46 -
Update README.md
Verified signature04c4e1f -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster6c9afc3 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster3f7b583 -
Upload README.md with huggingface_hub
Verified signature8c58460 -
initial commit
Verified signatureac6eaa8