ollamaが便利だから使用方法をメモる
ollamaはどうやらコンテナを扱う様なノリでローカルLLMを実行可能にするツールらしい。
データセットを作成させたりプロンプトを作成させたり出来る。
Macなら使い方は簡単だ
Linux OR WSL2 環境の場合はこれで入る
curl https://ollama.ai/install.sh | sh
Dockerイメージも用意されているのでDockerで起動してもよさそう
llama2 を実行したい場合は次のようにする
ollama run llama2
Dockerfileを書く様なノリでModelfileを書いてビルド出来る
1ローカルにダウンロード済みのモデルを指定してFROM文で指定することで書ける
FROM ./vicuna-33b.Q4_0.gguf
2ビルドする
ollama create example -f Modelfile
3モデルを実行する
ollama run example
pullも出来るそうだ
私もこの方法でMixtralのモデルをPullした
ollama pull llama2
で何が良かったってデータセットの作成とかプロンプトの生成が簡単になった。
StableDiffusionに入れるプロンプトを考えてもらった
% ollama run mistral:latest "create 100 prompts to create cute charcters by stable diffusion"
Creating 100 unique character prompts for stable diffusion techniques in
art may be challenging, but here are some ideas to get started:
1. A bunny with oversized ears and a gentle expression, created using soft
pastels.
2. A squirrel wearing a red scarf, made through stable diffusion of oil
paints.
3. An owl with big, bright eyes and feathers that blend seamlessly
together using watercolors.
4. A hedgehog with quills that seem to diffuse gently into the background,
created with acrylics.
5. A fox with a mischievous grin, made by blending colored pencils with
stable diffusion techniques.
6. A frog with a calming color palette and smooth transitions between
colors, achieved through stable diffusion of watercolors.
7. A rabbit wearing a chef's hat, created using stable diffusion
techniques with tempera paints.
8. A bear cub with soft, rounded features, made by combining watercolors
and gouache with stable diffusion.
9. A panda with playful expression, created through stable diffusion of
colored inks.
10. A kangaroo hopping along with a joyful expression, made using stable
diffusion techniques with markers.
11. A sloth hanging from a tree branch with peaceful eyes, achieved
through stable diffusion of acrylic paints.
12. A raccoon wearing a bandana, created using stable diffusion of
watercolor and ink.
13. A penguin waddling along with a gentle expression, made by blending
colored pencils with stable diffusion techniques.
14. A hedgehog in a winter scene, surrounded by snow and created through
stable diffusion of pastels.
15. A chameleon changing colors to blend into its environment, achieved
using stable diffusion of watercolors and alcohol inks.
16. A fox in the forest with a soft color palette, made by combining oil
paints with stable diffusion techniques.
17. A kitten with fluffy fur and big, curious eyes, created through stable
diffusion of acrylics and markers.
18. A giraffe reaching up high with long neck and spots that blend gently
together, achieved using stable diffusion of watercolors.
19. A tiger with stripes that flow seamlessly into the background, made by
blending oil pastels with stable diffusion techniques.
20. A beaver building a dam, created through stable diffusion of tempera
paints and colored pencils.
21. A dolphin jumping out of the water, achieved using stable diffusion of
acrylics and markers.
22. A lion with a proud mane, made by blending oil pastels with stable
diffusion techniques.
23. A monkey swinging through the trees, created using stable diffusion of
colored pencils and markers.
24. An elephant in the savanna with its trunk raised high, achieved
through stable diffusion of watercolors and gouache.
25. A moose in the forest, created using stable diffusion of acrylics and
pastels.
26. A polar bear in its icy habitat, made by blending colored pencils and
markers with stable diffusion techniques.
27. A hippopotamus in the water, achieved through stable diffusion of oil
paints and watercolors.
28. A kangaroo joey in a pouch, created using stable diffusion of pastels
and markers.
29. A zebra with stripes that seem to blend together, made by blending
colored pencils with stable diffusion techniques.
30. A rhino with a gentle expression, achieved through stable diffusion of
watercolors and gouache.
31. A sloth in the rainforest, created using stable diffusion of acrylics
and pastels.
32. A giraffe with a unique patterned hide, made by blending oil pastels
with stable diffusion techniques.
33. A parrot perched on a branch with colorful feathers, achieved through
stable diffusion of watercolors and markers.
34. A panda cub playing in the snow, created using stable diffusion of
colored pencils and gouache.
35. A meerkat peeking out of its burrow, made by blending oil pastels with
stable diffusion techniques.
36. A flamingo standing on one leg in a pink lake, achieved through stable
diffusion of watercolors and markers.
37. A gorilla in the jungle, created using stable diffusion of acrylics
and colored pencils.
38. A polar bear cub playing in the snow, made by blending oil pastels
with stable diffusion techniques.
39. A sloth hanging from a tree branch, achieved through stable diffusion
of watercolors and gouache.
40. A meerkat family in their burrow, created using stable diffusion of
colored pencils and markers.
41. A flamingo flock in the salt lake, made by blending oil paints with
stable diffusion techniques.
42. A gorilla mother with her baby, achieved through stable diffusion of
watercolors and pastels.
43. A zebra herd on the savanna, created using stable diffusion of
acrylics and markers.
44. A polar bear family in their icy habitat, made by blending oil pastels
with stable diffusion techniques.
45. A meerkat playing with a bone, achieved through stable diffusion of
colored pencils and gouache.
46. A flamingo taking off in flight, made by blending watercolors and
markers with stable diffusion techniques.
47. A gorilla climbing a tree, created using stable diffusion of pastels
and oil paints.
48. A zebra foal taking its first steps, achieved through stable diffusion
of acrylics and colored pencils.
49. A polar bear cub exploring its icy world, made by blending oil pastels
with stable diffusion techniques.
50. A meerkat family playing in the sun, created using stable diffusion of
markers and colored pencils.
51. A flamingo feeding its chick, achieved through stable diffusion of
watercolors and gouache.
52. A gorilla gathering fruit, made by blending pastels and oil paints
with stable diffusion techniques.
53. A zebra herd crossing a river, created using stable diffusion of
acrylics and markers.
54. A polar bear family huddled together for warmth, made by blending
colored pencils with stable diffusion techniques.
55. A meerkat playing in the sand, achieved through stable diffusion of
pastels and watercolors.
56. A flamingo preening itself, created using stable diffusion of oil
paints and markers.
57. A gorilla building a nest, made by blending colored pencils and
watercolors with stable diffusion techniques.
58. A zebra herd grazing in the savanna, achieved through stable diffusion
of acrylics and pastels.
59. A polar bear swimming in the sea, created using stable diffusion of
oil paints and gouache.
60. A meerkat hunting for food, made by blending colored pencils with
stable diffusion techniques.
61. A flamingo standing on one leg in a pink lake, achieved through stable
diffusion of watercolors and pastels.
62. A gorilla playing with a stick, created using stable diffusion of oil
pastels and markers.
63. A zebra foal nursing, made by blending acrylics and colored pencils
with stable diffusion techniques.
64. A polar bear cub rolling in the snow, achieved through stable
diffusion of watercolors and gouache.
65. A meerkat family gathering food, created using stable diffusion of
pastels and markers.
66. A flamingo swimming in a pink lake, made by blending oil paints and
watercolors with stable diffusion techniques.
67. A gorilla teaching its young one to climb, achieved through stable
diffusion of colored pencils and acrylics.
68. A zebra herd in the savanna, created using stable diffusion of pastels
and oil pastels.
69. A polar bear family playing in the snow, made by blending oil pastels
with stable diffusion techniques.
70. A meerkat building a burrow, achieved through stable diffusion of
colored pencils and gouache.
71. A flamingo wading in the shallow water, created using stable diffusion
of watercolors and markers.
72. A gorilla grooming itself, made by blending oil pastels and pastels
with stable diffusion techniques.
73. A zebra herd drinking from a river, achieved through stable diffusion
of acrylics and colored pencils.
74. A polar bear family huddled together for warmth, created using stable
diffusion of colored pencils and watercolors.
75. A meerkat playing with a ball, made by blending oil pastels with
stable diffusion techniques.
76. A flamingo standing on one leg, achieved through stable diffusion of
watercolors and pastels.
77. A gorilla swinging from tree to tree, created using stable diffusion
of colored pencils and acrylics.
78. A zebra herd galloping across the savanna, made by blending oil
pastels with stable diffusion techniques.
79. A polar bear family exploring their icy world, achieved through stable
diffusion of watercolors and gouache.
80. A meerkat family playing in the sun, created using stable diffusion of
colored pencils and markers.
できましたねぇ
生成するのは簡単なのだがこれで生成した絵を評価する方法はまた考えます
この記事が気に入ったらサポートをしてみませんか?