Skip to content

Instantly share code, notes, and snippets.

View benjaminsinzore's full-sized avatar
👽

Benjamin Sinzore benjaminsinzore

👽
  • THE BOMA Project-NGO
  • Nairobi, Kenya
  • 10:23 (UTC +03:00)
View GitHub Profile
@benjaminsinzore
benjaminsinzore / grpo_demo.py
Created June 4, 2025 13:03 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@benjaminsinzore
benjaminsinzore / gist:93a9e15ea8725cab98221fb835af6aaf
Created November 19, 2022 06:33 — forked from mstfldmr/gist:f6594b2337e3633673e5
Example of Volley GET and POST requests with parameters and headers
RequestQueue queue = Volley.newRequestQueue(context);
//for POST requests, only the following line should be changed to
StringRequest sr = new StringRequest(Request.Method.GET, "http://headers.jsontest.com/",
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.e("HttpClient", "success! response: " + response.toString());
}
},
@benjaminsinzore
benjaminsinzore / MainActivity.java
Last active November 22, 2022 07:49
The following steps describe how to use the Internet Connection Manager Library by Benjamin Sinzore in Android Applications with Java Language.
String connectedMess = "Internet Connection was established.";
String disconnectedMess = "Device was disconnected or poor Internet Connection.";
boolean showNetworkDialog = true;
ConnectionManager connectionManager = new ConnectionManager();
connectionManager.connection(
this,
getApplication(),
connectedMess,
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.okhttprequestexample">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.okhttprequestexample">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"