NikolayKozloff commited on
Commit
1278304
1 Parent(s): 6357bec

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +78 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ library_name: transformers
6
+ tags:
7
+ - python
8
+ - java
9
+ - cpp
10
+ - sql
11
+ - function calling
12
+ - unit tests
13
+ - causalLM
14
+ - codeLLAMA modified archi
15
+ - document
16
+ - code
17
+ - code2doc
18
+ - instruction_tuned
19
+ - basemodel
20
+ - pytorch
21
+ - docstring
22
+ - documentation
23
+ - text-generation-inference
24
+ - plan
25
+ - planner
26
+ - llama-cpp
27
+ - gguf-my-repo
28
+ metrics:
29
+ - accuracy
30
+ pipeline_tag: text-generation
31
+ widget:
32
+ - text: '<example_response>--code:def function_divide2(x): return x / 2--question:Document
33
+ the code--doc:Description:This function takes a number and divides it by 2.Parameters:-
34
+ x (numeric): The input value to be divided by 2.Returns:- float: The result of
35
+ x divided by 2.Example:To call the function, use the following code:function_divide2(1.0)</example_response><function_code>def
36
+ _plot_bounding_polygon(polygons_coordinates, output_html_path=bounding_polygon_map.html):map_center
37
+ = [sum([coord[0]for polygon_coords in polygons_coordinatesfor coord in polygon_coords])/
38
+ sum([len(polygon_coords) for polygon_coords in polygons_coordinates]),sum([coord[1]for
39
+ polygon_coords in polygons_coordinatesfor coord in polygon_coords])/ sum([len(polygon_coords)
40
+ for polygon_coords in polygons_coordinates]),]my_map = folium.Map(location=map_center,
41
+ zoom_start=12)for polygon_coords in polygons_coordinates:folium.Polygon(locations=polygon_coords,color=blue,fill=True,fill_color=blue,fill_opacity=0.2,).add_to(my_map)marker_cluster
42
+ = MarkerCluster().add_to(my_map)for polygon_coords in polygons_coordinates:for
43
+ coord in polygon_coords:folium.Marker(location=[coord[0], coord[1]], popup=fCoordinates:
44
+ {coord}).add_to(marker_cluster)draw = Draw(export=True)draw.add_to(my_map)my_map.save(output_html_path)return
45
+ output_html_path</function_code><question>Document the python code above giving
46
+ function description ,parameters and return type and example how to call the function</question><doc>'
47
+ example_title: example
48
+ ---
49
+
50
+ # NikolayKozloff/pip-code-bandit-Q8_0-GGUF
51
+ This model was converted to GGUF format from [`PipableAI/pip-code-bandit`](https://huggingface.co/PipableAI/pip-code-bandit) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
52
+ Refer to the [original model card](https://huggingface.co/PipableAI/pip-code-bandit) for more details on the model.
53
+ ## Use with llama.cpp
54
+
55
+ Install llama.cpp through brew.
56
+
57
+ ```bash
58
+ brew install ggerganov/ggerganov/llama.cpp
59
+ ```
60
+ Invoke the llama.cpp server or the CLI.
61
+
62
+ CLI:
63
+
64
+ ```bash
65
+ llama-cli --hf-repo NikolayKozloff/pip-code-bandit-Q8_0-GGUF --model pip-code-bandit.Q8_0.gguf -p "The meaning to life and the universe is"
66
+ ```
67
+
68
+ Server:
69
+
70
+ ```bash
71
+ llama-server --hf-repo NikolayKozloff/pip-code-bandit-Q8_0-GGUF --model pip-code-bandit.Q8_0.gguf -c 2048
72
+ ```
73
+
74
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
75
+
76
+ ```
77
+ git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m pip-code-bandit.Q8_0.gguf -n 128
78
+ ```