|
Download README.md from Inishds/function_calling-gemma-2b: direct link, hf CLI and curl.
- Browser
- Download file 852 Bytes
-
https://huggingface.co/Inishds/function_calling-gemma-2b/resolve/main/README.md
- Command line
-
hf download hf://Inishds/function_calling-gemma-2b/README.md
-
curl -L -o README.md https://huggingface.co/Inishds/function_calling-gemma-2b/resolve/main/README.md
852 Bytes
| license: apache-2.0 | |
| # function_calling-gemma-2b | |
| function_calling-gemma-2b is an SFT fine-tuned version of google/gemma-2b using a custom training dataset. | |
| This model was made with [Phinetune]() | |
| ## Process | |
| - Learning Rate: 1.41e-05 | |
| - Maximum Sequence Length: 4096 | |
| - Dataset: Inishds/function_calling | |
| - Split: train | |
| ## 💻 Usage | |
| ```python | |
| !pip install -qU transformers | |
| from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline | |
| model = "Inishds/function_calling-gemma-2b" | |
| tokenizer = AutoTokenizer.from_pretrained(model) | |
| # Example prompt | |
| prompt = "Your example prompt here" | |
| # Generate a response | |
| model = AutoModelForCausalLM.from_pretrained(model) | |
| pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer) | |
| outputs = pipeline(prompt, max_length=50, num_return_sequences=1) | |
| print(outputs[0]["generated_text"]) | |
| ``` |